From b3d9d47cfe747ba7f6d028fca4e288fb9361ecca Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 17 Jun 2019 22:09:31 -0400 Subject: [PATCH] Reimplement initial fail --- buildiso.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildiso.sh b/buildiso.sh index 103a420..b157c7f 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -7,6 +7,11 @@ # using a standard Debian intaller ISO. The end system is suitable # for immediate bootstrapping with the PVC Ansible roles. +fail() { + echo "$@" + exit 1 +} + which debootstrap &>/dev/null || fail "This script requires debootstrap." which mksquashfs &>/dev/null || fail "This script requires squashfs." which xorriso &>/dev/null || fail "This script requires xorriso."