diff options
| author | EuAndreh <eu@euandre.org> | 2019-05-26 20:14:36 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2019-05-26 20:15:41 -0300 |
| commit | bd6485443aee46ecd0bd5356ab7d35fdf761545d (patch) | |
| tree | ba7fc09634cb015c6a7702c281bfd16a89f10d63 /ci-setup.sh | |
| parent | Run CI scripts from ./vps/ folder (diff) | |
| download | toph-bd6485443aee46ecd0bd5356ab7d35fdf761545d.tar.gz toph-bd6485443aee46ecd0bd5356ab7d35fdf761545d.tar.xz | |
Use more robust Bash cd approach
Diffstat (limited to '')
| -rwxr-xr-x | ci-setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
