summaryrefslogtreecommitdiff
path: root/.local/bin/hosts_update.sh
blob: e6e6c2f10b3a70c8098491b7d6e144b1860abefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# create the hosts cache directory if it doesn't already exists
if [ ! -d $HOME/.cache/hosts ] ; then
        mkdir $HOME/.cache/hosts
fi

curl http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts > $HOME/.cache/hosts/hosts_work
curl http://sbc.io/hosts/hosts > $HOME/.cache/hosts/hosts_fun

exit 0