Remove unneded $

This commit is contained in:
Eduard Tolosa 2018-11-05 22:25:19 -05:00
parent 042ec11ee4
commit 7a7d442efc

View file

@ -10,7 +10,7 @@ ofile=/tmp/google.txt
services='write here the name of the services separated by spaces, example: systemd-networkd systemd-resolved wicd network-manager' services='write here the name of the services separated by spaces, example: systemd-networkd systemd-resolved wicd network-manager'
#Check if wget is installed #Check if wget is installed
if command -v wget $> /dev/null; then if command -v wget > /dev/null; then
# Check internet connection and if not OK then restart all networking services # Check internet connection and if not OK then restart all networking services
echo "Testing your connection..." echo "Testing your connection..."
wget -q --tries=1 --timeout=1 https://google.com -O $ofile &> /dev/null wget -q --tries=1 --timeout=1 https://google.com -O $ofile &> /dev/null