fix for create_postgresql_tbl grep so it stops throwing a failure

This commit is contained in:
NorseGaud 2020-02-22 19:15:48 -05:00
parent 8e1a52566f
commit 43010e1bd2

@ -242,7 +242,7 @@ create_postgresql_tbl(){
CREATEDB="createdb $CONNECTION_PARAMS"
# Create db on remote server
if $PSQL -lt | cut -d\| -f 1 | grep -qw | grep 0; then
if $PSQL -lt | cut -d\| -f 1 | grep -qw $POSTGRESQL_SERVER_DB_NAME | grep 0; then
$CREATEDB $POSTGRESQL_SERVER_DB_NAME
fi