Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Nov 2, 2023
1 parent ddf9694 commit f085ddf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ tables=$(mysql --silent --skip-column-names -h"$NEW_HOST" -u"$NEW_USER" -p"$NEW_
echo "tables=$tables"

if [[ -z "$tables" ]]; then
if [ -z "$OVERWRITE_DATABASE" ]; then
write_ok "The new database is empty. Proceeding with restore."
fi
write_ok "The new database is empty. Proceeding with restore."
else
if [ -z "$OVERWRITE_DATABASE" ]; then
error_exit "The new database is not empty. Aborting migration.\nSet the OVERWRITE_DATABASE environment variable to overwrite the new database."
Expand Down

0 comments on commit f085ddf

Please sign in to comment.