Skip to content

Commit

Permalink
cloud_functions: add check
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Dec 7, 2023
1 parent 2313e5b commit 494945b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud_functions/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ if [ -z "$PG_DATABASE" ]; then
exit 1
fi

if [ -z "$PG_HOST" ]; then
echo "PG_HOST must be specified"
if [ -z "$PG_HOST" ] || [ "$PG_HOST" == "localhost" ] || [ "$PG_HOST" == "127.0.0.1" ]; then
echo "PG_HOST must be specified correctly"
exit 1
fi

Expand Down

0 comments on commit 494945b

Please sign in to comment.