1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01: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

4
dzgui.sh Executable file → Normal file
View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.6.0-beta.14 version=5.6.0-beta.15
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -580,7 +580,7 @@ fetch_helpers_by_sum(){
["ui.py"]="be3da1e542d14105f4358dd38901e25a" ["ui.py"]="be3da1e542d14105f4358dd38901e25a"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="bdf2b0d71622de2a5762005290879b3d" ["funcs"]="bfe629ed9481627317b49a8f9c6fad24"
["lan"]="c62e84ddd1457b71a85ad21da662b9af" ["lan"]="c62e84ddd1457b71a85ad21da662b9af"
) )
local author="aclist" local author="aclist"

View file

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