diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-24 18:17:42 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-24 18:17:42 +0200 |
commit | 67cb8aae2767c6d38ccfce6e9f61d59dc8d2406d (patch) | |
tree | fae39d23c42ac63801dc27a2ba688db1433e0a57 /pkgs | |
parent | fix(pkgs/update.sh): Update to the new `by-name` convention (diff) | |
download | nixos-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-x | pkgs/update.sh | 2 |
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 |