Explorar o código

scripts/build-aci: fix the way to check executability

Or it may treat runnable command as unexecutable.
Yicheng Qin %!s(int64=10) %!d(string=hai) anos
pai
achega
a1b01c266a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/build-aci

+ 1 - 1
scripts/build-aci

@@ -8,7 +8,7 @@ IMAGEDIR=${IMAGEDIR:-bin/image-aci}
 
 VERSION=$1
 
-if [ ! -x "$ACTOOL" ] ; then
+if ! command -v $ACTOOL >/dev/null; then
     echo "actool ($ACTOOL) is not executable"
     exit 1
 fi