summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/facebook4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/facebook b/bin/facebook
index baa843f..00ecdcc 100755
--- a/bin/facebook
+++ b/bin/facebook
@@ -1,7 +1,7 @@
#! /bin/bash
line="127.0.0.1 www.facebook.com"
-if grep -q "facebook" /etc/hosts; then
- zenity --password | sudo -S bash -c "sed -i '/facebook/d' /etc/hosts"
+if grep -q "www.facebook.com" /etc/hosts; then
+ zenity --password | sudo -S bash -c "sed -i '/www.facebook.com/d' /etc/hosts"
else
zenity --password | sudo -S bash -c "echo ${line} >> /etc/hosts"
fi