mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +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
|
||||
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
|
||||
: > "${adlistFile}"
|
||||
# For each choice available
|
||||
# For each choice available,
|
||||
for choice in ${choices}
|
||||
do
|
||||
appendToListsFile "${choice}"
|
||||
|
|
Loading…
Reference in a new issue