Skip to content

Commit

Permalink
Exit after DB check failure
Browse files Browse the repository at this point in the history
Signed-off-by: Sijie Shen <[email protected]>
  • Loading branch information
ds-ssj committed Jul 10, 2024
1 parent 387c678 commit 691160e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gart
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ check_postgresql_connection() {
echo "Successfully connected to PostgreSQL database."
else
echo "Could not connect to PostgreSQL database."
exit 1
fi
}

Expand All @@ -388,6 +389,7 @@ check_mysql_connection() {
echo "Successfully connected to MySQL database."
else
echo "Could not connect to MySQL database."
exit 1
fi
}

Expand Down

0 comments on commit 691160e

Please sign in to comment.