Notify and quit if not installed

This commit is contained in:
Dennis ten Hoove 2024-02-12 02:25:02 +01:00
parent dbdbad6f1a
commit 1e1a3d2a6d

5
arkdep
View file

@ -45,6 +45,11 @@ fi
#
declare -r arkdep_dir='/arkdep/'
if [[ ! -d $arkdep_dir ]] && [[ ! $1 == 'init' ]]; then
printf "\e[1;31m<#>\e[0m\e[1m Arkep does not seem to be managing this system for $arkdep_dir was not found\e[0m\n"
exit 1
fi
## Load config file
#
source $(readlink -m $arkdep_dir/config)