Skip to content

Commit

Permalink
Merge pull request #648 from dxw/fix-setup-messaging
Browse files Browse the repository at this point in the history
Fix setup script messaging
  • Loading branch information
yndajas authored Nov 24, 2023
2 parents 5688145 + c87373d commit 16dae4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/no-docker/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 16dae4b

Please sign in to comment.