2 Commits

Author SHA1 Message Date
e8ac353453 feat: switches to conventional confirmation prompt 2021-05-08 21:45:52 +01:00
3wc
552abdd980 Don't clobber global $DOMAIN variable
Closes #156
2021-05-06 00:43:16 +02:00

12
abra
View File

@ -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
}
@ -899,7 +899,7 @@ prompt_confirm() {
return
fi
read -rp "Continue? (y/[n])? " choice
read -rp "Continue? [y/N]? " choice
case "$choice" in
y|Y ) return ;;