From 67cb8aae2767c6d38ccfce6e9f61d59dc8d2406d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 24 May 2024 18:17:42 +0200 Subject: 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. --- pkgs/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/update.sh') 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 -- cgit 1.4.1