1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

fix: initial setup

This commit is contained in:
aclist 2024-12-12 11:50:18 +09:00
parent 1be68e7be3
commit 12b1c392df

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.13 version=5.6.0-beta.14
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -874,9 +874,11 @@ test_connection(){
["github.com"]="https://github.com/$author" ["github.com"]="https://github.com/$author"
["codeberg.org"]="https://codeberg.org/$author" ["codeberg.org"]="https://codeberg.org/$author"
) )
# steam API is mandatory # steam API is mandatory, except on initial setup
res=$(get_response_code "${hr["steampowered.com"]}") if [[ -n $steam_api ]]; then
[[ $res -ne 200 ]] && raise_error_and_quit "$str ${hr["steampowered.com"]}" res=$(get_response_code "${hr["steampowered.com"]}")
[[ $res -ne 200 ]] && raise_error_and_quit "$str ("steampowered.com")"
fi
res=$(get_response_code "${hr["github.com"]}") res=$(get_response_code "${hr["github.com"]}")
if [[ $res -ne 200 ]]; then if [[ $res -ne 200 ]]; then
@ -885,7 +887,6 @@ test_connection(){
res=$(get_response_code "${hr["codeberg.org"]}") res=$(get_response_code "${hr["codeberg.org"]}")
[[ $res -ne 200 ]] && raise_error_and_quit "$str (${hr["codeberg.org"]})" [[ $res -ne 200 ]] && raise_error_and_quit "$str (${hr["codeberg.org"]})"
fi fi
if [[ $remote_host == "cb" ]]; then if [[ $remote_host == "cb" ]]; then
url_prefix="https://codeberg.org/$author/$repo/raw/branch" url_prefix="https://codeberg.org/$author/$repo/raw/branch"
releases_url="https://codeberg.org/$author/$repo/releases/download/browser" releases_url="https://codeberg.org/$author/$repo/releases/download/browser"