melawy-linux-updater-tray/scripts/check_updates.sh

18 lines
280 B
Bash
Executable File

#!/bin/bash
ping -c 1 1.1.1.1 > /dev/null
have_internet="$?"
if [ "$have_internet" -eq 0 ]; then
echo "Checking for available updates..."
checkupdates
else
echo "There appears to be no internet connection."
fi
echo "Finish!"
echo "This window may close!"
sleep 5