aboutsummaryrefslogtreecommitdiff
path: root/ci-setup.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-26 20:14:36 -0300
committerEuAndreh <eu@euandre.org>2019-05-26 20:15:41 -0300
commitbd6485443aee46ecd0bd5356ab7d35fdf761545d (patch)
treeba7fc09634cb015c6a7702c281bfd16a89f10d63 /ci-setup.sh
parentRun CI scripts from ./vps/ folder (diff)
downloadtoph-bd6485443aee46ecd0bd5356ab7d35fdf761545d.tar.gz
toph-bd6485443aee46ecd0bd5356ab7d35fdf761545d.tar.xz
Use more robust Bash cd approach
Diffstat (limited to '')
-rwxr-xr-xci-setup.sh2
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