Files
dosbox/check-version.sh
T
2025-09-10 11:33:18 +03:00

13 lines
291 B
Bash

#!/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"