Add check-version.sh script
This commit is contained in:
1 parent
bc5a9b280a
commit
8489daa846
1 file changed
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Sourceforge project
|
||||||
|
REPO="gptfdisk"
|
||||||
|
|
||||||
|
# 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)
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
Reference in new issue
Block a user