From ef10f372243316795b606a9c89176930c9d97bb6 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Thu, 16 Nov 2023 11:51:11 +0300 Subject: [PATCH] fix for build script --- generate.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/generate.sh b/generate.sh index 999103c..5e3e406 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,5 @@ #!/bin/bash set -euxo pipefail -mkdir -p .temp/result git submodule update --init --recursive workdir=$(dirname "$0") @@ -15,13 +14,13 @@ mkdir -p "$build_dir" # Initialize antizapret data cd "$path_az" -patch < "$path_data/az-cyrillic-idn-fix.patch" +patch --forward < "$path_data/az-cyrillic-idn-fix.patch" || true bash update.sh bash parse.sh cd "$workdir" # Generate geoip.dat -cat "$path_data/geoip-generator-config.json" "$path_geoip/config.json" +cat "$path_data/geoip-generator-config.json" > "$path_geoip/config.json" mkdir -p "$path_geoip/data" cp "$path_az/result/iplist_all.txt" "$path_geoip/data/ru-blocked-ips-all" cp "$path_az/result/iplist_blockedbyip.txt" "$path_geoip/data/ru-blocked-ips-directblock"