mirror of
https://github.com/aclist/dztui.git
synced 2026-08-31 12:16:55 +02:00
Compare commits
2 Commits
a4e03a0b88
...
84cae43dbd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84cae43dbd | ||
|
|
cc73f23c1c |
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" > /dev/null; then
|
if ! ping -w "$timeout_sec" "$url" > /dev/null 2>&1; 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