1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-09-05 21:22:26 +02:00

fix: url syntax

This commit is contained in:
aclist 2024-12-12 12:08:57 +09:00
parent 12b1c392df
commit 62e6da2abb
2 changed files with 5 additions and 3 deletions

View file

@ -74,7 +74,7 @@ repo="dztui"
#2024-12-12
gh_prefix="https://github.com"
issues_url="$gh_prefix/$author/$repo/issues"
url_prefix="https://codeberg.org/$author/$repo/branch"
url_prefix="https://codeberg.org/$author/$repo/raw/branch"
stable_url="$url_prefix/dzgui"
testing_url="$url_prefix/testing"
releases_url="https://codeberg.org/$author/$repo/releases/download/browser"
@ -854,6 +854,8 @@ dl_changelog(){
local file="CHANGELOG.md"
[[ $branch == "stable" ]] && mdbranch="dzgui"
[[ $branch == "testing" ]] && mdbranch="testing"
#TODO: this is hardcoded
#2024-12-12
local md="https://codeberg.org/$author/$repo/raw/branch/${mdbranch}/$file"
curl -Ls "$md" > "$state_path/$file"
}