scripts,ipkg-build: Fix error message for invalid package name
Use the correct variable ($pkg instead of $name) in the error message.
Signed-off-by: Karsten Sperling <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20077
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit 63bf77b801d59e7cf97b6bcd90aa040f8464d99c)