If using the default git clone URL, also update it to use HTTPS if the flag is passed.

This commit is contained in:
Pedro Algarvio 2014-10-28 02:04:53 +00:00
parent 79e9c7e7fb
commit 68329b80c8

View file

@ -300,7 +300,12 @@ do
fi
;;
g ) _SALT_REPO_URL=$OPTARG ;;
G ) _SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git"
G ) if [ "${_SALT_REPO_URL}" = "${_SALTSTACK_REPO_URL}" ]; then
_SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git"
_SALT_REPO_URL=${_SALTSTACK_REPO_URL}
else
_SALTSTACK_REPO_URL="https://github.com/saltstack/salt.git"
fi
;;
k ) _TEMP_KEYS_DIR="$OPTARG"
# If the configuration directory does not exist, error out