#!/bin/bash # Gitea repository REPO="librewolf/source" # Get version from tag name using Gitea Rest API TAG_NAME=$(curl -s -L https://librewolf.dev/api/v1/repos/$REPO/releases/latest | jq -r '.tag_name') # Replace '-' with 'p' VERSION=${TAG_NAME//-/p} echo "$VERSION"