Skip to content

Commit

Permalink
vagrant/rollback: properly fail rollback if sandbox is not installed
Browse files Browse the repository at this point in the history
Fixes rollback in an environment without sandbox installed.

Signed-off-by: Michael Adam <[email protected]>
  • Loading branch information
obnoxxx committed Aug 22, 2017
1 parent 103d64e commit 7250e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/rollback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MACHINES=(${@:-$(vagrant status | grep running | awk '{print $1}')})

vagrant sandbox rollback "${MACHINES[@]}"
vagrant sandbox rollback "${MACHINES[@]}" || exit 1

for m in ${MACHINES[*]}; do
echo "[${m}] Restarting services..."
Expand Down

0 comments on commit 7250e2f

Please sign in to comment.