#!/usr/bin/env bash analytics_servers=$(cat <&1 >> /dev/null if test $? -ne 0; then echo "Could not block analytics servers. Please add the following lines to your /etc/hosts manually:" echo "$analytics_servers" fi else echo "Analytics servers are already blocked" fi