9 lines
220 B
Bash
9 lines
220 B
Bash
#!/bin/bash
|
|
|
|
URL="https://invisible-island.net/archives/xterm/"
|
|
|
|
# Get version number from tag name
|
|
VERSION=$(curl --silent "$URL" | grep -o -E 'xterm-[0-9]{1,}.tgz' | grep -o -E '[0-9]{1,}' | tail -n1)
|
|
|
|
echo "$VERSION"
|