diff options
author | EuAndreh <eu@euandre.org> | 2022-05-15 18:57:04 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-15 18:57:04 -0300 |
commit | a3e4714f2d87fa52cae05493abc6753bc622eabc (patch) | |
tree | 0565b4062821ae8176d0ccfcf3f4a2152bd9058e /etc | |
parent | bin/grun: s/FIXME/TODO/ to simplify etc/bash/check.sh tests (diff) | |
download | dotfiles-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')
-rwxr-xr-x | etc/bash/check.sh | 2 |
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 \ |