Update package version to 154.0.1p3
This commit is contained in:
+5
-5
@@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Codeberg repository
|
||||
# Gitea repository
|
||||
REPO="librewolf/source"
|
||||
|
||||
# Get version from tag name using Codeberg Rest API
|
||||
TAG_NAME=$(curl -s -L https://codeberg.org/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
||||
# 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')
|
||||
|
||||
# Get version number from tag name
|
||||
VERSION=$(echo "$TAG_NAME" | tr '-' 'p')
|
||||
# Replace '-' with 'p'
|
||||
VERSION=${TAG_NAME//-/p}
|
||||
|
||||
echo "$VERSION"
|
||||
|
||||
Reference in New Issue
Block a user