Files
7zip/check-version.sh
2025-08-02 18:42:54 +03:00

9 lines
222 B
Bash

#!/bin/bash
URL="https://www.7-zip.org/history.txt"
# Get version number from tag name
VERSION=$(curl -s -L "$URL" | grep -B1 '\-------------------------' | head -n1 | grep -o -E '(([0-9]*)\.([0-9]*))')
echo "$VERSION"