Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Codeberg repository
|
||||
REPO="Limine/Limine"
|
||||
|
||||
# Get version from tag name using Codeberg Rest API
|
||||
VERSION=$(curl -s -L https://codeberg.org/api/v1/repos/$REPO/releases/latest | jq -r '.tag_name')
|
||||
|
||||
# Remove 'v'
|
||||
VERSION=${VERSION//v/}
|
||||
|
||||
echo "$VERSION"
|
||||
Reference in New Issue
Block a user