From 7270ae715f2af909f73e60fcada6cb1e585963bb Mon Sep 17 00:00:00 2001 From: lucvic Date: Wed, 14 Oct 2015 17:26:20 +0200 Subject: [PATCH] Added -h option --- cluster-manager.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cluster-manager.sh b/cluster-manager.sh index e089c51..c95899e 100755 --- a/cluster-manager.sh +++ b/cluster-manager.sh @@ -103,11 +103,15 @@ HOSTLIST=( # OPTION PROCESSING # -OPTIONS=$(getopt -o s: -- $@) +OPTIONS=$(getopt -o s:h: -- $@) eval set -- $OPTIONS while true; do case "$1" in + -h) + IFS=',' read -a HOSTLIST <<< "$2" + shift 2 + ;; -s) SSH_USER="${2}@" shift 2 @@ -239,6 +243,7 @@ case "$ACTION" in echo " " echo "List of options:" echo " -s " + echo " -h " ;; *) -- libgit2 0.21.4