15 lines
279 B
Bash
15 lines
279 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' | tail -n1)
|
|
|
|
# Trim prefix
|
|
VERSION=${VERSION//xterm-/}
|
|
|
|
# Trim suffix
|
|
VERSION=${VERSION//.tgz/}
|
|
|
|
echo "$VERSION"
|