1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-12 19:27:17 +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() {
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