diff options
Diffstat (limited to 'hostfile-block.sh')
-rwxr-xr-x | hostfile-block.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hostfile-block.sh b/hostfile-block.sh index 6833168..6971da8 100755 --- a/hostfile-block.sh +++ b/hostfile-block.sh @@ -86,7 +86,7 @@ if ping -q -c 1 -W 1 cs.uic.edu >/dev/null; then truncate -s 0 /etc/hosts cat $base_host_file >> /etc/hosts - cat $blocklist_tmp | sed $'s/\r$//' | sort -u | sed '/^$/d' | awk -v "IP=$destination_ip" '{sub(/\r$/,""); print IP" "$0}' >> /etc/hosts + cat $blocklist_tmp | sed $'s/\r$//' | sort -u | sed '/^$/d' | awk -v "IP=$destination_ip" '{sub(/\r$/,""); print IP" "$0}' | uniq >> /etc/hosts rm -f $blocklist_tmp |