diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 6c746d5..8d57ef9 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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