Add check-version.sh script

This commit is contained in:
2025-09-10 11:33:18 +03:00
parent d52e1e5a86
commit 326067d30b
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Sourceforge project
REPO="dosbox"
# Get version using best_release.json
VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq '.platform_releases.linux.filename' | cut -d'/' -f3)
# Replace '-' with '.'
VERSION=${VERSION//-/.}
echo "$VERSION"