diff --git a/common/xbps-src/shutils/pkgtarget.sh b/common/xbps-src/shutils/pkgtarget.sh index fcad8cb4d28..931816068dd 100644 --- a/common/xbps-src/shutils/pkgtarget.sh +++ b/common/xbps-src/shutils/pkgtarget.sh @@ -3,7 +3,7 @@ check_pkg_arch() { local cross="$1" _arch f match nonegation - if [ -n "$archs" -o "${archs// /}" != "noarch" ]; then + if [ -n "$archs" -a "${archs// /}" != "noarch" ]; then if [ -n "$cross" ]; then _arch="$XBPS_TARGET_MACHINE" elif [ -n "$XBPS_ARCH" ]; then