Working version of cloner, basic setup of git and so on
This commit is contained in:
12
checker/cloner-lib-cfg
Normal file
12
checker/cloner-lib-cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# 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
|
||||
Reference in New Issue
Block a user