mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-07-01 15:45:22 +02:00
update cpmutil
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
060ebb8ad4
commit
aff9a6cee1
6 changed files with 63 additions and 34 deletions
|
|
@ -83,8 +83,13 @@ for pkg in $packages; do
|
|||
echo "-- Package $PACKAGE"
|
||||
|
||||
# TODO(crueter): Support for Forgejo updates w/ forgejo_token
|
||||
# Use gh-cli to avoid ratelimits lmao
|
||||
TAGS=$(gh api --method GET "/repos/$REPO/tags")
|
||||
# Use gh-cli to avoid ratelimits, if available
|
||||
endpoint="/repos/$REPO/tags"
|
||||
if command -v gh >/dev/null 2>&1; then
|
||||
TAGS=$(gh api --method GET "$endpoint")
|
||||
else
|
||||
TAGS=$(curl -sfL "https://api.github.com$endpoint")
|
||||
fi
|
||||
|
||||
# filter out some commonly known annoyances
|
||||
# TODO add more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue