From 3c6ea2612dabc04ac94da90fe270092671a1a647 Mon Sep 17 00:00:00 2001 From: pvogt09 <50047961+pvogt09@users.noreply.github.com> Date: Fri, 15 May 2020 17:52:57 +0200 Subject: [PATCH] fix #3336 by creating adlist file even if no list was selected by user Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com> --- automated install/basic-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e1c21330..ac643037 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1223,7 +1223,9 @@ chooseBlocklists() { # In a variable, show the choices available; exit if Cancel is selected choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) || { printf " %bCancel was selected, exiting installer%b\\n" "${COL_LIGHT_RED}" "${COL_NC}"; rm "${adlistFile}" ;exit 1; } - # For each choice available, + # create empty adlist file if no list was selected + : > "${adlistFile}" + # For each choice available for choice in ${choices} do appendToListsFile "${choice}"