Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Then you have to be creative. Something like this:

CURRENT_VERSION=$(cat /etc/fedora-release | awk '{ print $3 }')
let NEXT_VERSION=$(expr $CURRENT_VERSION + 1)
IS_NEXT_VERSION_AVAILABLE=$(LC_ALL=C wget --spider https://fedoramagazine.org/announcing-fedora-$NEXT_VERSION/ 2>&1 | grep "^Remote file exists")
if [ -z "$IS_NEXT_VERSION_AVAILABLE" ]; then
    echo "No new version has yet been released."
else
    echo "THERE IS A NEW VERSION!!!"
fi