mirror of
https://github.com/aclist/dztui.git
synced 2025-04-08 13:33:00 +02:00
chore: backports from stable
This commit is contained in:
parent
406943bc12
commit
5ba23249bf
2 changed files with 5 additions and 8 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [5.7.0-beta.12] 2024-04-04
|
||||||
|
## Dropped
|
||||||
|
- Removed extraneous pre-boot API checks that could cause error messages to be printed if the user had not set up an API key yet
|
||||||
|
|
||||||
## [5.7.0-beta.11] 2024-03-20
|
## [5.7.0-beta.11] 2024-03-20
|
||||||
## Fixed
|
## Fixed
|
||||||
- Reduce startup time when testing remote APIs
|
- Reduce startup time when testing remote APIs
|
||||||
|
|
9
dzgui.sh
9
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=5.7.0-beta.11
|
version=5.7.0-beta.12
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -876,21 +876,14 @@ get_response_code(){
|
||||||
curl -Ls -I -o /dev/null -w "%{http_code}" "$url"
|
curl -Ls -I -o /dev/null -w "%{http_code}" "$url"
|
||||||
}
|
}
|
||||||
test_connection(){
|
test_connection(){
|
||||||
source "$config_file"
|
|
||||||
declare -A hr
|
declare -A hr
|
||||||
local res1
|
local res1
|
||||||
local res2
|
local res2
|
||||||
local str="No connection could be established to the remote server"
|
local str="No connection could be established to the remote server"
|
||||||
hr=(
|
hr=(
|
||||||
["steampowered.com"]="https://api.steampowered.com/IGameServersService/GetServerList/v1/?filter=\appid\221100&limit=10&key=$steam_api"
|
|
||||||
["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, except on initial setup
|
|
||||||
if [[ -n $steam_api ]]; then
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue