File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ check_log $create_log creation
4545
4646echo Running dump and restore
4747# No real need to cat the log on failure here; psql will generate an error and even if not verify will almost certainly catch it
48- createdb test_load && psql -c ' \df pg_getobject_address' test_load && (echo ' BEGIN;' && pg_dump test_dump && echo ' COMMIT;' ) | psql -q -v VERBOSITY=verbose -v ON_ERROR_STOP=true test_load > $restore_log
48+ createdb test_load && PAGER=' ' psql -c ' \df pg_get_object_address' test_load || die 5 ' crap'
49+ (echo ' BEGIN;' && pg_dump test_dump && echo ' COMMIT;' ) | psql -q -v VERBOSITY=verbose -v ON_ERROR_STOP=true test_load > $restore_log
4950rc=$?
50- if [ $rc ne 0 ]; then
51+ if [ $rc - ne 0 ]; then
5152 cat $restore_log
5253 die 4 " Unable to load database"
5354fi
You can’t perform that action at this time.
0 commit comments