From 616e7dae15114b9c188a1107249352d10ebcb071 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 11 May 2019 12:23:04 +0200 Subject: [PATCH] apply-sa-compile-utf8-patch.sh: change regexp to determin if the path was previouslyapplied. --- apply-sa-compile-utf8-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apply-sa-compile-utf8-patch.sh b/apply-sa-compile-utf8-patch.sh index 4115675..d20bd96 100755 --- a/apply-sa-compile-utf8-patch.sh +++ b/apply-sa-compile-utf8-patch.sh @@ -149,7 +149,7 @@ blank_line echononl "Apply patch \033[1m$(basename "$patch_file")\033[m to '$orig_file'.." patch --silent --forward --reject-file - -p0 "$orig_file" "$patch_file" > $log_file if [[ $? -gt 0 ]]; then - if $(grep -q "Skipping patch" "$log_file" 2> /dev/null) ; then + if $(grep -q -E "previously.* applied" "$log_file" 2> /dev/null) ; then echo_skipped else echo_failed