summarylogtreecommitdiffstats
path: root/hostsblock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hostsblock.sh')
-rwxr-xr-xhostsblock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostsblock.sh b/hostsblock.sh
index 5c64f93f5e73..23bf183211a9 100755
--- a/hostsblock.sh
+++ b/hostsblock.sh
@@ -458,7 +458,7 @@ else
fi
# INCLUDE HOSTS.HEAD FILE AS THE BEGINNING OF THE NEW TARGET HOSTS FILE
- if [ "$hostshead" == "0" ] || [ $hostshead -eq 0 ]; then
+ if [ "$hostshead" == "0" ]; then
rm $_v -- "$hostsfile" || _notify 1 "FAILED to delete existing $hostsfile."
else
cp $_v -f -- "$hostshead" "$hostsfile" || _notify 1 "FAILED to replace $hostsfile with $hostshead"