Initial commit

This commit is contained in:
2026-07-30 13:20:07 +03:00
commit 35917a8621
4 changed files with 51 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Sourceforge project
REPO="hdparm"
# Get version using best_release.json
VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq -r '.platform_releases.linux.filename' | cut -d'/' -f3)
# Trim prefix
VERSION=${VERSION//hdparm-}
# Trim suffix
VERSION=${VERSION//.tar.gz}
echo "$VERSION"