From 963f6fb35d4ac120d6a56bd328b3188a9e1acae9 Mon Sep 17 00:00:00 2001 From: Jarell <91372088+jarelllama@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:51:09 +0800 Subject: [PATCH] Update --- functions/build_lists.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/build_lists.sh b/functions/build_lists.sh index ab8eafe3b..288fd2f8c 100644 --- a/functions/build_lists.sh +++ b/functions/build_lists.sh @@ -13,14 +13,13 @@ build() { # Loop through the full and light blocklist versions for i in {1..2}; do - if [[ "$i" == '1' ]]; then - source_file="$RAW" - elif [[ "$i" == '2' ]]; then + if [[ "$i" == '2' ]]; then version='LIGHT VERSION' list_name='scams_light.txt' source_file="$RAW_LIGHT" fi + source_file=${source_file:-$RAW} blocklist_path="lists/${directory}/${list_name:-'scams.txt'}" # Append header onto blocklist