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:
commit
51b371ff3c
|
@ -296,7 +296,7 @@ create_postgresql_tbl() {
|
||||||
CREATEDB="createdb $CONNECTION_PARAMS"
|
CREATEDB="createdb $CONNECTION_PARAMS"
|
||||||
|
|
||||||
# Create db on remote server
|
# 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
|
$CREATEDB $DB_NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue