Skip to content

Commit

Permalink
Discard empty lines in Brewfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kissling committed Oct 31, 2023
1 parent 40150f4 commit dc8729e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ grep --invert-match --line-regexp --file /tmp/Brewfile.concat /tmp/Brewfile.dump
find "${HOME}"/dotfiles/brew -type f -name "Brewfile*" ! -name "*.lock.json" -print0 | while IFS= read -r -d '' file; do
{
grep "^tap" "$file";
grep -v "^tap" "$file" | sort;
grep -v "^tap" "$file" | awk '$1' | sort;
} > "$file.sorted" && mv "$file.sorted" "$file"
done

Expand Down

0 comments on commit dc8729e

Please sign in to comment.