12 lines
422 B
Plaintext
12 lines
422 B
Plaintext
|
# library for work with config file
|
||
|
|
||
|
# check directories if they exist
|
||
|
[ -d $CONFIG_DIR ] || die "Config directory does not exist on volune - $CONFIG_DIR"
|
||
|
[ -f $CONFIG_DIR/cloner.cfg ] || die "Config file does not exist - create please cloner.cfg"
|
||
|
# load config files
|
||
|
source $CONFIG_DIR/cloner.cfg
|
||
|
|
||
|
# check if the url is specified
|
||
|
repo=${cloner_repo_url:-}
|
||
|
[ -z "$repo" ] && die "No repository url is specified" || true
|