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:
parent
d14252433d
commit
8147790da9
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue