Преглед на файлове

build.sh: abort if assembling the images fails

Helge Jung преди 10 години
родител
ревизия
67ba799979
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      build.sh

+ 1 - 1
build.sh

@@ -88,7 +88,7 @@ echo "SITE=${SITE_COMMIT} # ${VERSION}" >> "output/${BRANCH}/build_info.txt"
 # compress all binaries into 7z archive
 progress "Assembling images.7z ..."
 [ -e "output/${BRANCH}/images.7z" ] && rm "output/${BRANCH}/images.7z"
-7z a "output/${BRANCH}/images.7z" ${CODE_DIR}/images/sysupgrade/*.bin ${CODE_DIR}/images/factory/*.bin
+7z a "output/${BRANCH}/images.7z" ${CODE_DIR}/images/sysupgrade/*.bin ${CODE_DIR}/images/factory/*.bin || abort "Failed to assemble images (did you install p7zip-full?)."
 
 # generate and copy manifest
 progress "Generating and copying manifest ..."