check for jigit-mkimage existence
This commit is contained in:
parent
224042206f
commit
1d77ab8fbf
@ -128,11 +128,20 @@ echo -e "$0: Creating ISO and jigdo representations:\n$CMD\n"
|
||||
${CMD}
|
||||
|
||||
# create another one from jigdo files
|
||||
jigit-mkimage \
|
||||
-t ${IMG}.template \
|
||||
-j ${IMG}.jigdo \
|
||||
-m Debian=${DIR} \
|
||||
-o ${IMG}.new
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user