mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-23 12:59:47 +00:00
spacing fixed
This commit is contained in:
parent
153031482f
commit
3cf9942465
1 changed files with 3 additions and 3 deletions
|
@ -329,9 +329,9 @@ CustomizeAdLists() {
|
|||
sed -i "\\@${args[3]}@s/^http/#http/g" "${list}"
|
||||
elif [[ "${args[2]}" == "add" ]] ; then
|
||||
echo "${args[3]}" >> ${list}
|
||||
elif [[ "${args[2]}" == "del" ]] ; then
|
||||
var=$(echo "${args[3]}" | sed 's/\//\\\//g')
|
||||
sed -i "/${var}/Id" "${list}"
|
||||
elif [[ "${args[2]}" == "del" ]] ; then
|
||||
var=$(echo "${args[3]}" | sed 's/\//\\\//g')
|
||||
sed -i "/${var}/Id" "${list}"
|
||||
else
|
||||
echo "Not permitted"
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue