Skip to content

Commit

Permalink
Better matching
Browse files Browse the repository at this point in the history
Co-authored-by: Bo Anderson <[email protected]>
  • Loading branch information
issyl0 and Bo98 committed Feb 11, 2024
1 parent 7ad1610 commit a7639af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
run: |
#!/bin/bash
core_patches=$(git -C homebrew-core grep -h "Homebrew/formula-patches" | awk -F/ '{print $NF}' | tr -d '"')
core_patches=$(git -C homebrew-core grep -h "Homebrew/formula-patches" | awk -F/ '{print $(NF-1)"/"$NF}' | tr -d '"')
all_patches=$(git ls-files -- '*/*' ':^.*/*')
status=0
for patch in $all_patches; do
if ! grep -q "$core_patches" <<< "$patch"; then
if ! grep -qx "$core_patches" <<< "$patch"; then
echo "Unused patch: $patch."
# TODO: Delete the patch and commit the deletion.
status=1
Expand Down

0 comments on commit a7639af

Please sign in to comment.