about summary refs log tree commit diff stats
path: root/pkgs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-24 18:17:42 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-24 18:17:42 +0200
commit67cb8aae2767c6d38ccfce6e9f61d59dc8d2406d (patch)
treefae39d23c42ac63801dc27a2ba688db1433e0a57 /pkgs
parentfix(pkgs/update.sh): Update to the new `by-name` convention (diff)
downloadnixos-config-67cb8aae2767c6d38ccfce6e9f61d59dc8d2406d.tar.gz
nixos-config-67cb8aae2767c6d38ccfce6e9f61d59dc8d2406d.zip
fix(pkgs/update.sh): Ensure that the `nix flake update` check works
Previously it also checked `fupdate.sh` because it did not ensure that
`update.sh` is the full name.
Diffstat (limited to 'pkgs')
-rwxr-xr-xpkgs/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/update.sh b/pkgs/update.sh
index d84c828e..73132a0f 100755
--- a/pkgs/update.sh
+++ b/pkgs/update.sh
@@ -12,7 +12,7 @@ cd ./by-name || die "(BUG): The directory './by-name' does not exist?"
 files_with_update="$(mktemp)";
 trap 'rm "$files_with_update"' EXIT
 
-fd update.sh . --type file --extension sh --max-depth 3 | while read -r file; do
+fd '^update.sh$' . --type file --extension sh --max-depth 3 | while read -r file; do
     grep -q "nix flake update" "$file" && echo "$file" >> "$files_with_update"
 done