mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: suppress ping stderr output
This commit is contained in:
1 parent
cbc131028f
commit
cc73f23c1c
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user