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 21:23:19 +00:00
parent d14252433d
commit 8147790da9
+3
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
}