Hacker News new | ask | show | jobs
by colonelxc 4954 days 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)
1 comments

Yup, 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.