Hide errors from dropdb (expected the first time)

This commit is contained in:
Sandro Santilli 2012-07-12 22:38:15 +02:00
parent 89d74970e1
commit 1462c3ed3e

View File

@ -31,7 +31,7 @@ die() {
} }
echo "preparing postgres..." echo "preparing postgres..."
dropdb ${TEST_DB} dropdb ${TEST_DB} 2> /dev/null # error expected if doesn't exist
createdb -Ttemplate_postgis -EUTF8 ${TEST_DB} || die "Could not create test database" createdb -Ttemplate_postgis -EUTF8 ${TEST_DB} || die "Could not create test database"
psql -f test.sql ${TEST_DB} psql -f test.sql ${TEST_DB}