Skip to content
Snippets Groups Projects
Commit 9391729a authored by felmer's avatar felmer
Browse files

bug in detecting existing database fixed

SVN: 24751
parent 498cc5da
No related merge requests found
......@@ -46,7 +46,7 @@ function backupDatabase() {
getProperty $DB_PROPS "database"
database=$propValue
if [ `psql -U postgres -l | grep $database | wc -l` -gt 0 ]; then
if [ `psql -U postgres -l | eval "awk '/$database /'" | wc -l` -gt 0 ]; then
getProperty $DB_PROPS "username"
username=$propValue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment