1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Merge pull request #3388 from pvogt09/fix/no_adlist_selected

fix #3336 by creating adlist file even if no list was selected by user
This commit is contained in:
Adam Warner 2020-05-15 23:22:35 +01:00 committed by GitHub
commit 5ce8791693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"