1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-02 07:01:04 +01:00

ci/update: always cd to the root of the flake

Allows running the script from a sub-directory, e.g.

    cd ci
    nix-build -A update
    result/bin/update
This commit is contained in:
Matt Sturgeon 2025-11-30 17:55:22 +00:00
parent d14252433d
commit 8147790da9

View file

@ -31,6 +31,9 @@ writeShellApplication {
update_args+=( "--commit-lock-file" )
fi
# Ensure we run at the root of the flake
cd "$(git rev-parse --show-toplevel)"
currentCommit() {
git show --no-patch --format=%h
}