From 2d08911428d7c4f3c97cb416825d8354f1e39982 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 11 Feb 2014 18:16:11 +0100 Subject: installer script checks existence of dab folder --- installer/debian.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'installer') diff --git a/installer/debian.sh b/installer/debian.sh index ef56107..476af99 100644 --- a/installer/debian.sh +++ b/installer/debian.sh @@ -61,6 +61,18 @@ fi # Fail on error set -e +if [ -d dab ] +then + echo -e $RED + echo "ERROR: The dab directory already exists." + echo -e $NORMAL + echo "This script assumes a fresh initialisation," + echo "if you have already run it and wish to update" + echo "the existing installation, please do it manually" + echo "or erase the dab folder first." + exit 1 +fi + echo -e "$GREEN Updating debian package repositories $NORMAL" sudo apt-get -y update -- cgit v1.2.3