From 85b7e8335a9fd873a300e3e69f55919ca83625fc Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 26 Sep 2017 10:34:52 +0000 Subject: [PATCH] hooks/post-extract/00-patches.sh: ignore files without patch/diff suffix --- common/hooks/post-extract/00-patches.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/hooks/post-extract/00-patches.sh b/common/hooks/post-extract/00-patches.sh index 73caa6dd1f2..7aca707fe0f 100644 --- a/common/hooks/post-extract/00-patches.sh +++ b/common/hooks/post-extract/00-patches.sh @@ -20,13 +20,13 @@ _process_patch() { elif [[ $f =~ .bz2$ ]]; then bunzip2 "$wrksrc/${_patch}" _patch=${_patch%%.bz2} - elif [[ $f =~ .diff ]]; then + elif [[ $f =~ .diff$ ]]; then : - elif [[ $f =~ .patch ]]; then + elif [[ $f =~ .patch$ ]]; then : else msg_warn "$pkgver: unknown patch type: $i.\n" - continue + return 0 fi cd "$wrksrc"