create_addon: quoting $PKG_ARCH

This commit is contained in:
vpeter4 2013-02-27 09:05:16 +01:00
parent 8d808bea03
commit 6dd213329a

View File

@ -36,7 +36,7 @@ if [ -z "$1" ]; then
exit 1
fi
if [ -n $PKG_ARCH -a ! "$PKG_ARCH" = "any" ]; then
if [ -n "$PKG_ARCH" -a ! "$PKG_ARCH" = "any" ]; then
echo "$PKG_ARCH" | grep -q "$TARGET_ARCH" || exit 0
echo "$PKG_ARCH" | grep -q "\-$TARGET_ARCH" && exit 0
fi