From 16ecf5bbc8af729065864fb9c89ef82dc2c039ab Mon Sep 17 00:00:00 2001 From: Chris Long Date: Tue, 4 Sep 2018 07:51:21 -0700 Subject: [PATCH] Add success notification for reloaded vagrants to build.sh [ci skip] If a host finished provisioning successfully after a reload, it would not print the "success!" message. This commit fixes that. This is potentially what caused the problem in #135. [ci skip] --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 9f06a5d..9f1c486 100755 --- a/build.sh +++ b/build.sh @@ -430,7 +430,9 @@ build_vagrant_hosts() { (echo >&2 "Something went wrong while attempting to build the $VAGRANT_HOST box.") (echo >&2 "Attempting to reload and reprovision the host...") RETRY_STATUS=$(vagrant_reload_host "$VAGRANT_HOST") - if [ "$RETRY_STATUS" -ne 0 ]; then + if [ "$RETRY_STATUS" -eq 0 ]; then + (echo >&2 "Good news! $VAGRANT_HOST was built successfully after a reload!") + else (echo >&2 "Failed to bring up $VAGRANT_HOST after a reload. Exiting.") exit 1 fi