Jelajahi Sumber

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

* print an error message to stderr
* exit with return code 1
Michal Vasilek 2 tahun lalu
induk
melakukan
ee69596c58
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  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"