]> granicus.if.org Git - pgbouncer/commitdiff
Fix shell syntax in test suite
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 1 Aug 2019 15:59:40 +0000 (17:59 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 1 Aug 2019 15:59:40 +0000 (17:59 +0200)
Using return outside a function doesn't make sense.

test/test.sh

index 5ed8aca4c500065c88154257a5ce34c348572528..62bc749c304800fc52cb6dba34cd787d41a2e400 100755 (executable)
@@ -95,8 +95,8 @@ psql -X -p $PG_PORT -l | grep p0 > /dev/null || {
 }
 
 psql -X -p $PG_PORT -d p0 -c "select * from pg_user" | grep pswcheck > /dev/null || {
-       psql -X -o /dev/null -p $PG_PORT -c "create user pswcheck with superuser createdb password 'pgbouncer-check';" p0 || return 1
-       psql -X -o /dev/null -p $PG_PORT -c "create user someuser with password 'anypasswd';" p0 || return 1
+       psql -X -o /dev/null -p $PG_PORT -c "create user pswcheck with superuser createdb password 'pgbouncer-check';" p0 || exit 1
+       psql -X -o /dev/null -p $PG_PORT -c "create user someuser with password 'anypasswd';" p0 || exit 1
 }
 
 echo "Starting bouncer"