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

Fix output in list.sh when adding a domain that is already present in the target list

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-04-25 14:54:41 +02:00
parent 43bced7997
commit cce66a13b6
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -161,7 +161,7 @@ RemoveDomain() {
sqlite3 "${gravityDBfile}" "DELETE FROM ${list} WHERE ${sqlitekey} = \"${domain}\";" sqlite3 "${gravityDBfile}" "DELETE FROM ${list} WHERE ${sqlitekey} = \"${domain}\";"
else else
if [[ "${verbose}" == true ]]; then if [[ "${verbose}" == true ]]; then
echo -e " ${INFO} ${1} does not exist in ${listname}, no need to remove!" echo -e " ${INFO} ${1} does not exist in ${list}, no need to remove!"
fi fi
fi fi
} }