fix: allow for using busybox grep
This commit is contained in:
parent
8efb7c51b1
commit
53441cb0fb
1 changed files with 1 additions and 1 deletions
2
apatch
2
apatch
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue