15 lines
278 B
Bash
15 lines
278 B
Bash
#!/bin/bash
|
|
|
|
URL="https://spice-space.org/download/gtk"
|
|
|
|
# Get version number from tag name
|
|
VERSION=$(curl -s -L "$URL" | grep -o -P 'spice-gtk-\d\.\d+.tar.xz' | tail -n1)
|
|
|
|
# Trim prefix
|
|
VERSION=${VERSION//spice-gtk-}
|
|
|
|
# Trim suffix
|
|
VERSION=${VERSION//.tar.xz}
|
|
|
|
echo "$VERSION"
|