1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-04-03 10:12:41 +00:00

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

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