From 552abdd980cad8dee057808cf28c5cc876fb4277 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 6 May 2021 00:43:16 +0200 Subject: [PATCH] Don't clobber global $DOMAIN variable Closes #156 --- abra | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/abra b/abra index 1ed74e8..f78bc02 100755 --- a/abra +++ b/abra @@ -808,17 +808,17 @@ ensure_stack_deployed() { } ensure_domain_deployed() { - DOMAIN=$1 + local domain=$1 - warning "Waiting for $DOMAIN to come up..." + warning "Waiting for $domain to come up..." idx=1 - until curl --output /dev/null --silent --head --fail "$DOMAIN"; do - debug "Polled $DOMAIN $idx time(s) already" + until curl --output /dev/null --silent --head --fail "$domain"; do + debug "Polled $domain $idx time(s) already" sleep 3 idx=$(("$idx" + 1)) if [[ $idx -gt 10 ]]; then - error "$DOMAIN still isn't up, check status by running \"abra app ${STACK_NAME} ps\"" + error "$domain still isn't up, check status by running \"abra app ${STACK_NAME} ps\"" fi done }