浏览代码

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

Or it may treat runnable command as unexecutable.
Yicheng Qin 10 年之前
父节点
当前提交
a1b01c266a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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