aboutsummaryrefslogtreecommitdiff
path: root/etc/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-05-15 18:57:04 -0300
committerEuAndreh <eu@euandre.org>2022-05-15 18:57:04 -0300
commita3e4714f2d87fa52cae05493abc6753bc622eabc (patch)
tree0565b4062821ae8176d0ccfcf3f4a2152bd9058e /etc/bash
parentbin/grun: s/FIXME/TODO/ to simplify etc/bash/check.sh tests (diff)
downloaddotfiles-a3e4714f2d87fa52cae05493abc6753bc622eabc.tar.gz
dotfiles-a3e4714f2d87fa52cae05493abc6753bc622eabc.tar.xz
etc/bash/check.sh: Move to the root of the Git directory before running tests
Diffstat (limited to 'etc/bash')
-rwxr-xr-xetc/bash/check.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/bash/check.sh b/etc/bash/check.sh
index 2b8971f..d66c277 100755
--- a/etc/bash/check.sh
+++ b/etc/bash/check.sh
@@ -47,6 +47,8 @@ while getopts 'h' flag; do
done
shift $((OPTIND - 1))
+cd -- "$(dirname -- "$0")"
+cd -- "$(git rev-parse --show-toplevel)"
shellcheck -xe 1090,1091 \
"$XDG_CONFIG_HOME"/bash/rc \