1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Check if ping result is not empty in OMR-Tracker server

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-08-16 17:12:52 +02:00
parent ac6fb86290
commit b54fab6077

View file

@ -49,7 +49,7 @@ _ping_server_intf() {
-I "$intf" \
"${host}" 2>&1
)
echo "$ret" | grep -sq " 0% packet loss" && {
[ -n "$ret" ] && echo "$ret" | grep -sq " 0% packet loss" && {
server_ping=true
}
k=$((k+1))