Skip to content

Commit

Permalink
do not quiet mongo table check
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Nov 2, 2023
1 parent c1d0e57 commit 1aea667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

sleep 2
sleep 5

set -o pipefail

Expand Down Expand Up @@ -79,7 +79,7 @@ write_ok "NEW_URL correctly set"
section "Checking if NEW_URL is empty"

# Using mongo shell to check if any collection has documents
result=$(mongo "$NEW_URL" --quiet --eval "db.getCollectionNames().length")
result=$(mongo "$NEW_URL" --eval "db.getCollectionNames().length")

if [[ "$result" -gt 0 ]]; then
if [ -z "$OVERWRITE_DATABASE" ]; then
Expand Down

0 comments on commit 1aea667

Please sign in to comment.