mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-25 15:43:19 +00:00
Revert "fix #3336 by creating adlist file even if no list was selected by user"
This reverts commit 3c6ea2612d
.
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
cd4072fbf8
commit
5c72ff75d9
1 changed files with 1 additions and 3 deletions
|
@ -1292,9 +1292,7 @@ chooseBlocklists() {
|
||||||
|
|
||||||
# In a variable, show the choices available; exit if Cancel is selected
|
# 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; }
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) || { printf " %bCancel was selected, exiting installer%b\\n" "${COL_LIGHT_RED}" "${COL_NC}"; rm "${adlistFile}" ;exit 1; }
|
||||||
# create empty adlist file if no list was selected
|
# For each choice available,
|
||||||
: > "${adlistFile}"
|
|
||||||
# For each choice available
|
|
||||||
for choice in ${choices}
|
for choice in ${choices}
|
||||||
do
|
do
|
||||||
appendToListsFile "${choice}"
|
appendToListsFile "${choice}"
|
||||||
|
|
Loading…
Reference in a new issue