Merge pull request #228 from NorseGaud/create_postgresql_tbl-grep-fix

Fix for create_postgresql_tbl grep throwing a failure
This commit is contained in:
Alexey Golubev 2020-03-05 14:17:35 +03:00 committed by GitHub
commit 51b371ff3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -296,7 +296,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 $DB_NAME | grep 0; then
$CREATEDB $DB_NAME
fi