Files
lynx/check-version.sh
T

9 lines
231 B
Bash

#!/bin/bash
URL="https://lynx.invisible-island.net/current/"
# Get version number from tag name
VERSION=$(curl -s -L "$URL" | grep 'We are currently working on Lynx ' | grep -o -E '([0-9]*)\.([0-9]*)\.([0-9]*)')
echo "$VERSION"