aboutsummaryrefslogtreecommitdiff
path: root/deploy.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 /deploy.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 'deploy.sh')
-rwxr-xr-xdeploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 036fd6e..9529bf9 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -Eeuo pipefail
-cd "${BASH_SOURCE%/*}/"
+cd "$(dirname "${BASH_SOURCE[0]}")"
apt_wait() {
local i=0