diff options
Diffstat (limited to 'data/get_env_info.sh')
-rwxr-xr-x | data/get_env_info.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/data/get_env_info.sh b/data/get_env_info.sh new file mode 100755 index 00000000..98ca68a6 --- /dev/null +++ b/data/get_env_info.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +usage() { + echo "usage $0 -n <installer_type> -i <installer_ip>" +} + + + +while getopts ":n:i:" optchar; do + case "${optchar}" in + n) + export INSTALLER_TYPE=${OPTARG};; + + i) + export INSTALLER_IP=${OPTARG};; + + *) + echo "Incorrect usage" + usage ;; + esac +done |