Skip to content

Commit

Permalink
fix: script quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Dec 31, 2024
1 parent 5dda944 commit c8ae85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function cleanupPatches() {
gitver=$(tail -n 2 "$patch" | grep -ve "^$" | tail -n 1)
diffs=$(git diff --staged "$patch" | grep -E "^(\+|\-)" | grep -Ev "(From [a-z0-9]{32,}|\-\-\- a|\+\+\+ b|.index|Date\: )")

testver=$(echo "$diffs" | tail -n 2 | grep -ve "^$" | tail -n 1 | grep "$gitver")
testver=$(echo "$diffs" | tail -n 2 | grep -ve "^$" | tail -n 1 | grep -- "$gitver")
if [ "x$testver" != "x" ]; then
diffs=$(echo "$diffs" | tail -n +3)
fi
Expand Down

0 comments on commit c8ae85a

Please sign in to comment.