Skip to content

Commit 63bf77b

Browse files
ksperling-applehauke
authored andcommitted
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: openwrt/openwrt#20077 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 5b0617a commit 63bf77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ipkg-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pkg_appears_sane() {
4545
arch="$(required_field Architecture)"
4646

4747
if echo "$pkg" | grep '[^a-zA-Z0-9_.+-]'; then
48-
echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2
48+
echo "*** Error: Package name '$pkg' contains illegal characters, (other than [a-z0-9.+-])" >&2
4949
PKG_ERROR=1;
5050
fi
5151

0 commit comments

Comments
 (0)