From 63bf77b801d59e7cf97b6bcd90aa040f8464d99c Mon Sep 17 00:00:00 2001 From: Karsten Sperling Date: Fri, 12 Sep 2025 15:49:13 +1200 Subject: [PATCH] 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 Link: https://github.com/openwrt/openwrt/pull/20077 Signed-off-by: Hauke Mehrtens --- scripts/ipkg-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ipkg-build b/scripts/ipkg-build index 6abcc588322..d2beb418441 100755 --- a/scripts/ipkg-build +++ b/scripts/ipkg-build @@ -45,7 +45,7 @@ pkg_appears_sane() { arch="$(required_field Architecture)" if echo "$pkg" | grep '[^a-zA-Z0-9_.+-]'; then - echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2 + echo "*** Error: Package name '$pkg' contains illegal characters, (other than [a-z0-9.+-])" >&2 PKG_ERROR=1; fi