aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 40cc19c..3e77d3e 100755
--- a/install.sh
+++ b/install.sh
@@ -97,7 +97,16 @@ fi
source ./config.sh
printf "%s" $(pwd) > wam
WHEREAMI="$(cat wam)"
-if [ ! -d $AK_WORKDIR ] ; then mkdir $AK_WORKDIR ;fi
+if [ ! -d $AK_WORKDIR ]
+then
+ mkdir $AK_WORKDIR
+else
+ printf "Error: Found %s.\n" "$AK_WORKDIR"
+ printf "Please back up your previous installation\n"
+ printf "and rerun ./install.sh.\n"
+ exit 5
+fi
+
if [ ! -d $AK_CONFIGDIR ] ; then mkdir $AK_CONFIGDIR ;fi
if [ ! -d $AK_BINDIR ]; then mkdir $AK_BINDIR ;fi
if [ ! -d $AK_ZBLOCKDIR ]; then mkdir $AK_ZBLOCKDIR ;fi