From 870b2d4cfff5aca55a59449cf09fa871533b66d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 25 May 2018 10:22:30 +0200 Subject: [PATCH] Fix HTTPS authentication in bootstrap script --- hack/bootstrap_tfw_dev.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/bootstrap_tfw_dev.sh b/hack/bootstrap_tfw_dev.sh index a1ea5d9..3531bb5 100755 --- a/hack/bootstrap_tfw_dev.sh +++ b/hack/bootstrap_tfw_dev.sh @@ -17,6 +17,8 @@ TEST=test-${TFW_POSTFIX} FRONTEND=frontend-${TFW_POSTFIX} LOGFILE=/tmp/bootstrap_tfw.log +remotebase="git@github.com:" + run() { trap 'exit 1' INT @@ -91,7 +93,6 @@ clone_repos_ask_ssh_or_https() clone_repos() { - remotebase="git@github.com:" spinned_or_not="spinned" if [[ "$HTTPS_REMOTES" == "1" ]]; then remotebase="https://github.com/" @@ -116,7 +117,7 @@ install_frontend_deps() fetch_latest_tag() { - echo -n "$(git ls-remote --tags git@github.com:avatao-content/${BASEIMAGE}.git | + echo -n "$(git ls-remote --tags ${remotebase}avatao-content/${BASEIMAGE}.git | cut -f2 | grep -oP '(?<=refs/tags/)\w+-\d{8}$' | sort -t '-' -k2 |