From bd6485443aee46ecd0bd5356ab7d35fdf761545d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 26 May 2019 20:14:36 -0300 Subject: Use more robust Bash cd approach --- ci-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci-setup.sh') diff --git a/ci-setup.sh b/ci-setup.sh index 3a84639..affa75d 100755 --- a/ci-setup.sh +++ b/ci-setup.sh @@ -1,7 +1,7 @@ #!/usr/bin/env nix-shell #!nix-shell -i bash set -Eeuo pipefail -cd "${BASH_SOURCE%/*}/" +cd "$(dirname "${BASH_SOURCE[0]}")" echo "Unlocking git-crypt repos..." git crypt unlock -- cgit v1.3