diff --git a/script/no-docker/setup b/script/no-docker/setup index 713895bf..e6a45d22 100755 --- a/script/no-docker/setup +++ b/script/no-docker/setup @@ -22,7 +22,7 @@ bundle exec rails db:drop DB_DROP_RESULT=$? set -e -if [ -z "$CI" ] && [ -n "$DB_DROP_RESULT" ]; then +if [ -z "$CI" ] && [ "$DB_DROP_RESULT" != 0 ]; then printf "\\nDatabase drop failed. Continue anyway? [y/N] " read -r @@ -44,7 +44,7 @@ RAILS_ENV="test" bundle exec rails db:drop DB_DROP_RESULT=$? set -e -if [ -z "$CI" ] && [ -n "$DB_DROP_RESULT" ]; then +if [ -z "$CI" ] && [ "$DB_DROP_RESULT" != 0 ]; then printf "\\nDatabase drop failed. Continue anyway? [y/N] " read -r