diff --git a/test.sh b/test.sh index debfa95..675faca 100755 --- a/test.sh +++ b/test.sh @@ -33,7 +33,7 @@ while [ $# -gt 0 ]; do echo "" echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {" width=33 - printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)" + printf "%-${width}s- %s\n" " -site {FQDN address(,es)}" "(*required)" printf "%-${width}s- %s\n" " -ssl {true or false}" "(defaults to true)" printf "%-${width}s- %s\n" " -type {'local' or 'proxy'}" "(defaults to local)" printf "%-${width}s- %s\n" " -scheme {http or https}" "(required if type set to proxy)" @@ -47,3 +47,10 @@ while [ $# -gt 0 ]; do done;; esac + +if [[ ${NEW_SITE} == *","* ]]; then + IFS=, + NEW_SITES=(${NEW_SITE}) + unset IFS + declare -p $NEW_SITES +fi