Sfoglia il codice sorgente

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)
Karsten Sperling 3 mesi fa
parent
commit
946e43c3d8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      scripts/ipkg-build

+ 1 - 1
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