nix: add "cd $rootdir" to all shell scripts via checked-shell-script

This commit is contained in:
Wolfgang Walther
2020-12-24 14:44:01 +01:00
committed by Wolfgang Walther
parent 56557c9c40
commit b5185de706
6 changed files with 39 additions and 39 deletions
+1 -3
View File
@@ -34,8 +34,6 @@ if [ "$#" -lt 1 ]; then
usage
fi
rootdir="$(git rev-parse --show-toplevel)"
# All data will be stored in a temporary directory.
tmpdir="$(mktemp -d)"
@@ -105,7 +103,7 @@ psql -v ON_ERROR_STOP=1 >> "$setuplog" << EOF
create extension pgcrypto;
alter database $PGDATABASE set request.jwt.claim.id = '-1';
alter role $PGUSER set default_text_search_config to english;
\i $rootdir/test/fixtures/load.sql
\i test/fixtures/load.sql
EOF
log "Done. Running command..."