From a041aa07b06b1aa261bf0e55ad83306e3c01401a Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 11 Apr 2024 14:41:43 +0200 Subject: [PATCH] Fix build script --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 8169fc42..828783be 100755 --- a/build.sh +++ b/build.sh @@ -867,8 +867,10 @@ fi if [ "$OMR_KERNEL" = "5.4" ] && ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-base-add_array_sort_utilities.patch; then patch -N -p1 -s < ../../patches/luci-base-add_array_sort_utilities.patch fi -if [ ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-nftables.patch ] && [ -d luci/modules/luci-mod-status ]; then - patch -N -p1 -s < ../../patches/luci-nftables.patch +if [ -d luci/modules/luci-mod-status ]; then + if ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-nftables.patch; then + patch -N -p1 -s < ../../patches/luci-nftables.patch + fi fi cd ../..