9 lines
222 B
Bash
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"
|