From 9e6b054708b31d32ce74fa657d155dc59e50f007 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 5 Nov 2016 19:20:26 +0000 Subject: [PATCH] Check that debian script was installed --- src/freedombone-image | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-image b/src/freedombone-image index 978a221a..1e2939ae 100755 --- a/src/freedombone-image +++ b/src/freedombone-image @@ -186,6 +186,10 @@ function image_setup { makepkg -i --force --noconfirm sudo wget https://raw.githubusercontent.com/bashrc/freedombone/stockholm/image_build/debootstrap/scripts/${DEBIAN_VERSION} -O /usr/share/debootstrap/scripts/debscript sudo cp -f /usr/share/debootstrap/scripts/debscript /usr/share/debootstrap/scripts/${DEBIAN_VERSION} + if [ ! -f /usr/share/debootstrap/scripts/${DEBIAN_VERSION} ]; then + echo $"No debian dbootstrap script was found for $DEBIAN_VERSION" + return + fi ;; *) echo $'Unkown operating system'