mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2025-06-16 03:42:56 -03:00
chore: fix fetching source from codeberg
This commit is contained in:
parent
eb18aa1d2b
commit
1e4f1050f2
2 changed files with 10 additions and 9 deletions
|
@ -4,12 +4,12 @@
|
|||
set -xe
|
||||
|
||||
latest_commit="$(
|
||||
curl -L -s ${GITHUB_TOKEN:+-u ":${GITHUB_TOKEN}"} https://api.github.com/repos/aclist/dztui/branches/master \
|
||||
| jq -r .commit.sha
|
||||
curl -L -s https://codeberg.org/api/v1/repos/aclist/dztui/branches/dzgui \
|
||||
| jq -r .commit.id
|
||||
)"
|
||||
|
||||
version="$(
|
||||
curl https://raw.githubusercontent.com/aclist/dztui/$latest_commit/dzgui.sh \
|
||||
curl https://codeberg.org/aclist/dztui/raw/commit/$latest_commit/dzgui.sh \
|
||||
| rg '^version=(.*)$' --replace '$1'
|
||||
)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue