From 53441cb0fbee991df9b6b4880cbdb9e08ae7199e Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sat, 30 Jul 2022 09:25:54 +0200 Subject: [PATCH] fix: allow for using busybox grep --- apatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apatch b/apatch index f87e96d..c77a124 100755 --- a/apatch +++ b/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