diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-22 14:07:44 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-22 14:07:44 +0300 |
commit | 5c6b610e905702074c80ce00b649b07df682fee6 (patch) | |
tree | b7c68ed9b2d631362d98928f4a5cb5383207f660 /install.sh | |
parent | 2e76a77d92bfc5640b942f3b3a297d5cb079e94d (diff) | |
download | arching-kaos-tools-5c6b610e905702074c80ce00b649b07df682fee6.tar.gz arching-kaos-tools-5c6b610e905702074c80ce00b649b07df682fee6.tar.bz2 arching-kaos-tools-5c6b610e905702074c80ce00b649b07df682fee6.zip |
Aborts installation if AK_WORKDIR is found.
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |