From 9f0c2fb6e2ce8b8e5b6cfa54434e4ab1e403a7ab Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 31 Jul 2025 22:38:37 +0300 Subject: [PATCH] ports: Apply only patches ending in .patch --- ports/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/install.sh b/ports/install.sh index 27fb14a2..7c9fce3d 100755 --- a/ports/install.sh +++ b/ports/install.sh @@ -155,7 +155,7 @@ if [ "$VERSION" = "git" ]; then pushd "$build_dir" >/dev/null git checkout "$COMMIT" || exit 1 if [ -d ../patches ]; then - for patch in ../patches/*; do + for patch in ../patches/*.patch ; do git apply "$patch" || exit 1 done fi @@ -194,7 +194,7 @@ else mv "$TAR_CONTENT" "$build_dir" || exit 1 if [ -d patches ]; then - for patch in ./patches/*; do + for patch in ./patches/*.patch ; do patch -ruN -p1 -d "$build_dir" < "$patch" || exit 1 done fi