mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 11:17:12 +02:00
fix: silence ping while checking remote urls
This commit is contained in:
parent
6aa1ec4201
commit
239a82876e
2
dzgui.sh
2
dzgui.sh
@ -503,7 +503,7 @@ check_availability() {
|
|||||||
if [[ $2 ]]; then
|
if [[ $2 ]]; then
|
||||||
timeout_sec=$2
|
timeout_sec=$2
|
||||||
fi
|
fi
|
||||||
if ! ping -w "$timeout_sec" "$url"; then
|
if ! ping -w "$timeout_sec" "$url" > /dev/null; then
|
||||||
logger WARN "Failed to reach $url, service may be down."
|
logger WARN "Failed to reach $url, service may be down."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user