From f91eb5ebb6c1b8977269729112d237a1f86177b7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 1 Feb 2019 19:01:56 -0600 Subject: [PATCH] Update test.sh --- test.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test.sh b/test.sh index 8cb6f6f..43ccbef 100755 --- a/test.sh +++ b/test.sh @@ -18,14 +18,14 @@ fi -while getopts ':s:t:l:c:h:p:' flag; do +while getopts ':d:t:s:S:H:P:' flag; do case "${flag}" in - s) s=$OPTARG; echo "NEW_SITE - ${s}" ;; - t) t=$OPTARG; echo "SITE_TYPE - ${t}" ;; - l) l=$OPTARG; echo "CREATE_SSL - ${l}" ;; - c) c=$OPTARG; echo "PROXYSCHEME - ${c}" ;; - h) h=$OPTARG; echo "PROXYHOST - ${h}" ;; - p) p=$OPTARG; echo "PROXYPORT - ${p}" ;; + d) NEW_SITE=$OPTARG; echo "NEW_SITE - ${NEW_SITE}" ;; + t) SITE_TYPE=$OPTARG; echo "SITE_TYPE - ${SITE_TYPE}" ;; + s) CREATE_SSL=$OPTARG; echo "CREATE_SSL - ${CREATE_SSL}" ;; + S) PROXYSCHEME=$OPTARG; echo "PROXYSCHEME - ${PROXYSCHEME}" ;; + H) PROXYHOST=$OPTARG; echo "PROXYHOST - ${PROXYHOST}" ;; + P) PROXYPORT=$OPTARG; echo "PROXYPORT - ${PROXYPORT}" ;; :) echo "Invalid option: '${OPTARG}' requires an argument" 1>&2 echo ""