about summary refs log tree commit diff stats
path: root/pkgs/by-name/fu/fupdate-sys
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 12:08:45 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 12:08:45 +0100
commit993c3283a9e6a00fcb6b747d54f281caf6f4b681 (patch)
tree01133013bdfc8bb582db736289ab79c322730179 /pkgs/by-name/fu/fupdate-sys
parentpkgs/notify-run: Append the name of the spawned command before printing (diff)
downloadnixos-config-993c3283a9e6a00fcb6b747d54f281caf6f4b681.zip
treewide: Give tempfiles descriptive names
This makes it easier to see, where each tempfile comes from.
Diffstat (limited to 'pkgs/by-name/fu/fupdate-sys')
-rwxr-xr-xpkgs/by-name/fu/fupdate-sys/fupdate-sys.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh b/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh
index 4ec3e9e8..991830b3 100755
--- a/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh
+++ b/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh
@@ -151,7 +151,7 @@ msg2 "Updating git repository..."
 git pull --rebase
 
 # We use a tempfile, to make this truly async.
-default_branch=$(mktemp)
+default_branch=$(mktemp fupdate_flake_XXXX)
 cleanup() {
     rm "$default_branch"
 }