From 4cfbcf1f2ce0fc6819949bbf2d869a9e3d7609cc Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 21 Sep 2025 20:42:42 +0300 Subject: [PATCH] Add check-version.sh script --- check-version.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..8267c1e --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Sourceforge project +REPO="zsh" + +# 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"