diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2013-11-27 13:11:07 +0100 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2013-11-27 13:11:07 +0100 |
commit | c0f78591f828d2920e340e35c7ebcc6da0cd59e9 (patch) | |
tree | 07fb5d24fc5dd4e3e40923abc436c0ac8bbfd9ff | |
parent | 876d88124f6216912996808842d5a33d68228646 (diff) |
check if repo is setsunet-ops-2013-11-27-v06sunet-ops-2013-11-27-v05sunet-ops-2013-11-27-v04
-rwxr-xr-x | addhost | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -37,6 +37,11 @@ defrepo=`git remote -v | grep ${remote:="ro"} | grep fetch | awk '{print $2}'` rrepo=${repo:="$defrepo"} rtag=${tag:="changeme"} +if [ "x$rrepo" = "x" ]; then + echo "$0: repo not set in cosmos.conf and no git branch named 'ro' found" + exit 1 +fi + if [ ! -d $cmd_hostname ]; then cp -pr default $cmd_fqdn git add $cmd_fqdn |