Merge pull request #1967 from vpeter4/stuff

create_addon: quoting $PKG_ARCH
This commit is contained in:
Stefan Saraev 2013-02-27 01:38:15 -08:00
commit c76e7355c1

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