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}
|
${CMD}
|
||||||
|
|
||||||
# create another one from jigdo files
|
# create another one from jigdo files
|
||||||
jigit-mkimage \
|
if which jigit-mkimage >/dev/null 2>&1; then
|
||||||
-t ${IMG}.template \
|
printf "$0: Creating new ISO from jigdo files..."
|
||||||
-j ${IMG}.jigdo \
|
jigit-mkimage \
|
||||||
-m Debian=${DIR} \
|
-t ${IMG}.template \
|
||||||
-o ${IMG}.new
|
-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
|
# trap the exit code of diff and let the Universe explode
|
||||||
diff ${IMG}.iso ${IMG}.new
|
diff ${IMG}.iso ${IMG}.new
|
||||||
|
Loading…
Reference in New Issue
Block a user