From 51cd837e3a546a90f5bdd6d3335170daac44d3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 20 Jun 2018 17:10:30 +0200 Subject: [PATCH] Fix remote ask logic broken by refactor streak --- hack/libhack/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/libhack/bootstrap.sh b/hack/libhack/bootstrap.sh index d25eff6..d1f86cf 100755 --- a/hack/libhack/bootstrap.sh +++ b/hack/libhack/bootstrap.sh @@ -75,7 +75,7 @@ check_dependencies() { } 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 || : echo if [[ ${REPLY} =~ ^(y|Y|yes|Yes|YES)$ ]]; then