commit 89a9e3c11daebd75e8f078de86fefd84a234f124
parent 7b594a173bcb3e0a140a1c8d0eb1683551fa5b8a
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 24 Feb 2020 12:07:04 +0100
fix cleanup logic
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/buildbot/coverage.sh b/buildbot/coverage.sh
@@ -8,6 +8,7 @@ PG_VER=12
PG_DIR=/usr/lib/postgresql/$PG_VER/bin
# setup little postgres DB for us ...
+cd
TMP_DB_DIR=`mktemp -d tmpXXXXXX`
$PG_DIR/initdb -D $TMP_DB_DIR/ -A trust
export PGPORT=5432
@@ -32,4 +33,5 @@ for codebase in merchant exchange sync ; do
done
$PG_DIR/pg_ctl -D $TMP_DB_DIR/ stop
+cd
rm -rf $TMP_DB_DIR