From 7d3aaa963081e7bfe831fabb0f11aaf542c3357d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 25 May 2024 13:41:13 +0200 Subject: style(treewide): Format --- pkgs/update_pkgs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/update_pkgs.sh') diff --git a/pkgs/update_pkgs.sh b/pkgs/update_pkgs.sh index 0a8c4cfc..3e33b720 100755 --- a/pkgs/update_pkgs.sh +++ b/pkgs/update_pkgs.sh @@ -9,14 +9,14 @@ 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)" trap 'rm "$files_with_update"' EXIT 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" + grep -q "nix flake update" "$file" && echo "$file" >>"$files_with_update" done -if [ "$(wc -l < "$files_with_update")" != 0 ]; then +if [ "$(wc -l <"$files_with_update")" != 0 ]; then die "Some packages seem to try to update their flake with 'nix flake update'. This is redundant. These Packages are: $(echo && cat "$files_with_update")" fi -- cgit 1.4.1