From 9d8b3bed9343eaf73c2ee63298b917866326b8dd Mon Sep 17 00:00:00 2001 From: Denys Havrysh Date: Tue, 13 Sep 2016 14:38:21 +0300 Subject: [PATCH] Display warning message about deprecating the `-G` option --- bootstrap-salt.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index b13b7c8..f15e9d4 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -356,7 +356,7 @@ EOT } # ---------- end of function __usage ---------- -while getopts ":hvnDc:g:wk:s:MSNXCPFUKIA:i:Lp:dH:ZbflV:J:j:rR:aq" opt +while getopts ':hvnDc:g:Gwk:s:MSNXCPFUKIA:i:Lp:dH:ZbflV:J:j:rR:aq' opt do case "${opt}" in @@ -379,6 +379,11 @@ do g ) _SALT_REPO_URL=$OPTARG ;; + G ) echowarn "The '-G' option is DEPRECATED and will be removed in the future stable release!" + echowarn "Bootstrap will always use 'https' protocol to clone from SaltStack GitHub repo." + echowarn "No need to provide this option anymore, now it is a default behavior." + ;; + w ) _DOWNSTREAM_PKG_REPO=$BS_TRUE ;; k ) _TEMP_KEYS_DIR="$OPTARG"