fix: change directory to repository top level

This commit is contained in:
Ben Grande 2024-07-19 15:29:17 +02:00
parent 5d6a50c286
commit 95a184d1a9
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
16 changed files with 17 additions and 0 deletions

View file

@ -11,6 +11,7 @@ set -eu
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
repo_toplevel="$(git rev-parse --show-toplevel)"
test -d "${repo_toplevel}" || exit 1
cd "${repo_toplevel}"
unset repo_toplevel
files=""