install_easy: do not clear ip lists if no download options specified

This commit is contained in:
bol-van 2023-02-08 17:51:15 +03:00
parent 16648485e1
commit 92b200964a

View File

@ -647,11 +647,11 @@ timer_install_systemd()
download_list()
{
[ -x "$GET_LIST" ] && {
[ -x "$GET_LIST" ] && {
echo \* downloading blocked ip/host list
# can be txt or txt.gz
"$IPSET_DIR/clear_lists.sh"
# can be txt or txt.gz. do not clear ip lists if no download option specified
[ -n "$GETLIST" ] && "$IPSET_DIR/clear_lists.sh"
"$GET_LIST"
}
}