mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-21 22:55:41 +01:00
Fix bad format in /etc/hosts
This commit is contained in:
parent
80e285960d
commit
cce53d6835
5
maza
5
maza
@ -131,8 +131,9 @@ update() {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
update
|
update
|
||||||
# Add List to host file
|
# Add List to host file.
|
||||||
cat "$CONFIG$LIST" >> "$HOST_FILE"
|
# Transform "mydomain.com" to "127.0.0.1 mydomain.com" except comments
|
||||||
|
custom-sed "/^#/!s/^/127.0.0.1 /g" "$CONFIG$LIST" >> "$HOST_FILE"
|
||||||
# Notify user
|
# Notify user
|
||||||
echo "${COLOR_GREEN}ENABLED!${COLOR_RESET}"
|
echo "${COLOR_GREEN}ENABLED!${COLOR_RESET}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user