aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/update_pkgs.sh
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-10-30 15:15:54 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:27:17 +0100
commite3c893c7df92e026309492dd1e646b7a77979656 (patch)
tree93326849419dce78ce31704425d94a18122cef3f /pkgs/update_pkgs.sh
parentinputs.nix: Add more deduplications and clearly denote stable/unstable nixpkgs (diff)
downloadnixos-server-e3c893c7df92e026309492dd1e646b7a77979656.zip
treewide: Various fixes
Diffstat (limited to 'pkgs/update_pkgs.sh')
-rwxr-xr-xpkgs/update_pkgs.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/update_pkgs.sh b/pkgs/update_pkgs.sh
index 3e33b72..d447889 100755
--- a/pkgs/update_pkgs.sh
+++ b/pkgs/update_pkgs.sh
@@ -9,7 +9,7 @@ cd "$(dirname "$0")" || die "Bug: run with the wrong first arg: '$0'!"
cd ./by-name || die "(BUG): The directory './by-name' does not exist?"
# First check if all the update scripts conform to the standard
-files_with_update="$(mktemp)"
+files_with_update="$(mktemp -t update_pkgs_XXXXX)"
trap 'rm "$files_with_update"' EXIT
fd '^update.sh$' . --type file --extension sh --max-depth 3 | while read -r file; do
@@ -30,8 +30,6 @@ fd . --type directory --max-depth 1 | while read -r shard; do
if [ -x update.sh ]; then
printf " \033[34;1m> \033[0m\033[34;1m%s\033[0m\n" "Running '${shard}${package}update.sh' .."
- [ -f flake.nix ] && nix flake update
-
direnv allow
eval "$(direnv export bash 2>/dev/null)"
./update.sh "$@"