Conveniently print all fails at once
This commit is contained in:
parent
9a7915e70c
commit
fb6f346376
12
buildiso.sh
12
buildiso.sh
|
@ -12,10 +12,14 @@ fail() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
which debootstrap &>/dev/null || fail "This script requires debootstrap."
|
fail=""
|
||||||
which mksquashfs &>/dev/null || fail "This script requires squashfs-tools."
|
which debootstrap &>/dev/null || fail="y"
|
||||||
which xorriso &>/dev/null || fail "This script requires xorriso."
|
which mksquashfs &>/dev/null || fail="y"
|
||||||
test -f /usr/lib/ISOLINUX/isohdpfx.bin &>/dev/null || fail "This script requires isolinux."
|
which xorriso &>/dev/null || fail="y"
|
||||||
|
test -f /usr/lib/ISOLINUX/isohdpfx.bin &>/dev/null || fail="y"
|
||||||
|
if [[ -n ${fail} ]]; then
|
||||||
|
fail "This script requires debootstrap, xorriso, squashfs-tools, and isolinux"
|
||||||
|
fi
|
||||||
|
|
||||||
isofilename="pvc-installer_$(date +%Y-%m-%d).iso"
|
isofilename="pvc-installer_$(date +%Y-%m-%d).iso"
|
||||||
srcliveisopath="https://cdimage.debian.org/mirror/cdimage/release/current-live/amd64/iso-hybrid"
|
srcliveisopath="https://cdimage.debian.org/mirror/cdimage/release/current-live/amd64/iso-hybrid"
|
||||||
|
|
Loading…
Reference in New Issue