Notify and quit if not installed
This commit is contained in:
parent
dbdbad6f1a
commit
1e1a3d2a6d
1 changed files with 5 additions and 0 deletions
5
arkdep
5
arkdep
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue