Update URL and download
This commit is contained in:
+5
-5
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gitea repository
|
||||
REPO="EnumDev/enit"
|
||||
# Github repository
|
||||
REPO="EnumeratedDev/enit"
|
||||
|
||||
# Get version from tag name using Gitea Rest API
|
||||
VERSION=$(curl -s -L https://git.enumerated.dev/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
||||
# Get tag name using Github Rest API
|
||||
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/tags | jq -r '.[0].name')
|
||||
|
||||
echo "$VERSION"
|
||||
echo "$TAG_NAME"
|
||||
|
||||
Reference in New Issue
Block a user