Skip to content

Commit 20f557a

Browse files
committed
config(commit_flake_update.bash): Add FLAKE_INPUT as a parameter with empty default value
1 parent 0df76e6 commit 20f557a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/commit_flake_update.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -euo pipefail
44

5+
FLAKE_INPUT=${FLAKE_INPUT:-""}
6+
57
if ! git config --get user.name >/dev/null 2>&1 || \
68
[ "$(git config --get user.name)" = "" ] ||
79
! git config --get user.email >/dev/null 2>&1 || \
@@ -15,7 +17,7 @@ fi
1517
current_commit="$(git rev-parse HEAD)"
1618
export PRE_COMMIT_ALLOW_NO_CONFIG=1
1719

18-
nix flake update --accept-flake-config --commit-lock-file
20+
nix flake update $FLAKE_INPUT --accept-flake-config --commit-lock-file
1921
commit_after_update="$(git rev-parse HEAD)"
2022

2123
if [[ "$commit_after_update" = "$current_commit" ]]; then

0 commit comments

Comments
 (0)