fix: allow for using busybox grep

This commit is contained in:
ptrcnull 2022-07-30 09:25:54 +02:00
parent 8efb7c51b1
commit 53441cb0fb
1 changed files with 1 additions and 1 deletions

2
apatch
View File

@ -81,7 +81,7 @@ fi
# if file exists, try to apply
if [ -e "$patchpath" ]; then
git apply --reject --whitespace=fix "$patchpath" || {
rejects="$(git status --porcelain | grep '\?\? .*\.rej$' | cut -c4-)"
rejects="$(git status --porcelain | grep -F '??' | grep -F '.rej' | cut -c4-)"
if [ -n "$rejects" ]; then
warning "$1 partially applied with rejects"
for reject in $rejects; do