diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-25 13:41:13 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-25 13:41:13 +0200 |
commit | 7d3aaa963081e7bfe831fabb0f11aaf542c3357d (patch) | |
tree | a314205dec6282478c497bd3573eaca800c88804 /pkgs/update_pkgs.sh | |
parent | fix(modules/services/nix): Add my overlayed `nixpkgs` to the flake (diff) | |
download | nixos-config-7d3aaa963081e7bfe831fabb0f11aaf542c3357d.tar.gz nixos-config-7d3aaa963081e7bfe831fabb0f11aaf542c3357d.zip |
style(treewide): Format
Diffstat (limited to '')
-rwxr-xr-x | pkgs/update_pkgs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |