mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05: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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user