We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df76e6 commit 20f557aCopy full SHA for 20f557a
scripts/commit_flake_update.bash
@@ -2,6 +2,8 @@
2
3
set -euo pipefail
4
5
+FLAKE_INPUT=${FLAKE_INPUT:-""}
6
+
7
if ! git config --get user.name >/dev/null 2>&1 || \
8
[ "$(git config --get user.name)" = "" ] ||
9
! git config --get user.email >/dev/null 2>&1 || \
@@ -15,7 +17,7 @@ fi
15
17
current_commit="$(git rev-parse HEAD)"
16
18
export PRE_COMMIT_ALLOW_NO_CONFIG=1
19
-nix flake update --accept-flake-config --commit-lock-file
20
+nix flake update $FLAKE_INPUT --accept-flake-config --commit-lock-file
21
commit_after_update="$(git rev-parse HEAD)"
22
23
if [[ "$commit_after_update" = "$current_commit" ]]; then
0 commit comments