Bladeren bron

build.sh: abort if assembling the images fails

Helge Jung 10 jaren geleden
bovenliggende
commit
67ba799979
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 ..."