Files
bash/check-version.sh
T
2025-07-11 17:52:13 +03:00

9 lines
228 B
Bash

#!/bin/bash
URL="https://tiswww.case.edu/php/chet/bash/bashtop.html"
# Get version number from tag name
VERSION=$(curl -s -L "$URL" | grep -A1 'The current version of bash is ' | grep -o -E '([0-9]\.[0-9]*)')
echo "$VERSION"