Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gitea repository
|
||||
REPO="quickshell/quickshell"
|
||||
|
||||
# Get tag name using Forgejo Rest API
|
||||
TAG_NAME=$(curl -s -L https://git.outfoxxed.me/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
||||
|
||||
# Trim 'v' character in TAG_NAME variable
|
||||
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||
|
||||
echo "$VERSION"
|
||||
Reference in New Issue
Block a user