From 56b8cd8a380c3069f02b95319dcc7c148b4cfb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=BCller?= Date: Wed, 23 Oct 2024 15:22:26 +0200 Subject: [PATCH] tools/dbtest-*: fix shellcheck complaints --- tools/dbtest-prepare-env.sh | 4 ++-- tools/dbtest-run-migrations.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/dbtest-prepare-env.sh b/tools/dbtest-prepare-env.sh index 6e8c5f9f13..09d369f09e 100755 --- a/tools/dbtest-prepare-env.sh +++ b/tools/dbtest-prepare-env.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -pushd $(mktemp -d) +pushd "$(mktemp -d)" || exit 1 go mod init temp go install github.com/jackc/tern@latest -popd +popd || exit diff --git a/tools/dbtest-run-migrations.sh b/tools/dbtest-run-migrations.sh index d3c44ea988..7be4d81ca8 100755 --- a/tools/dbtest-run-migrations.sh +++ b/tools/dbtest-run-migrations.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash WORKDIR=$(readlink -f pkg/jobqueue/dbjobqueue/schemas) -$(go env GOPATH)/bin/tern migrate -m "$WORKDIR" +"$(go env GOPATH)"/bin/tern migrate -m "$WORKDIR"