瀏覽代碼

build-x86-images: fix error with missing mklive.sh

* print an error message to stderr
* exit with return code 1
Michal Vasilek 2 年之前
父節點
當前提交
ee69596c58
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      build-x86-images.sh.in

+ 4 - 1
build-x86-images.sh.in

@@ -68,7 +68,10 @@ build_variant() {
     ./mklive.sh -a "$ARCH" -o "$IMG" -p "$PKGS" ${REPO} "$@"
 }
 
-[ ! -x mklive.sh ] && exit 0
+if [ ! -x mklive.sh ]; then
+    echo mklive.sh not found >&2
+    exit 1
+fi
 
 for image in $IMAGES; do
     build_variant "$image"