check for jigit-mkimage existence

This commit is contained in:
George Danchev 2011-06-23 16:49:42 +00:00
parent 224042206f
commit 1d77ab8fbf

View File

@ -128,11 +128,20 @@ echo -e "$0: Creating ISO and jigdo representations:\n$CMD\n"
${CMD}
# create another one from jigdo files
if which jigit-mkimage >/dev/null 2>&1; then
printf "$0: Creating new ISO from jigdo files..."
jigit-mkimage \
-t ${IMG}.template \
-j ${IMG}.jigdo \
-m Debian=${DIR} \
-o ${IMG}.new
printf "Done.\n"
else
printf "\n$0: Not found: jigit-mkimage. Install jigit.\n"
exit 1
fi
# trap the exit code of diff and let the Universe explode
diff ${IMG}.iso ${IMG}.new