4 ms·
I think there is a bug in the 'off' function (though I haven't had the chance to run it yet). # Read from the array, and remove files from /etc/hosts f
by colonelxc 14y ago
I think there is a bug in the 'off' function (though I haven't had the chance to run it yet).
# Read from the array, and remove files from /etc/hosts
for site in $*; do
sed -i '' "/127.0.0.1 $host/d" $hosts
done
it should be $site instead of $host (the latter is never referenced elsewhere in the file)
- sjhcockrell 14y agoYup, that's a bug. Thanks for looking through the code! Now I need to figure out why it seemed to work in the first place.