소스 검색

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"