Fix remote ask logic broken by refactor streak

This commit is contained in:
Kristóf Tóth 2018-06-20 17:10:30 +02:00
parent df285fea58
commit 51cd837e3a
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ check_dependencies() {
} }
clone_required_repos_ask_ssh_or_https() { clone_required_repos_ask_ssh_or_https() {
if [[ "${HTTPS_REMOTES:-0}" == "1" ]]; then if [[ -z "${HTTPS_REMOTES:-}" ]]; then
read -p "Repos are pulled over SSH by default. Should I use HTTPS instead? [y/N]" -r -t 5 || : read -p "Repos are pulled over SSH by default. Should I use HTTPS instead? [y/N]" -r -t 5 || :
echo echo
if [[ ${REPLY} =~ ^(y|Y|yes|Yes|YES)$ ]]; then if [[ ${REPLY} =~ ^(y|Y|yes|Yes|YES)$ ]]; then