aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 \