From cebfaa4acd32325a9c91fb7f097aad598004bbb5 Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Wed, 21 Aug 2019 14:52:11 +0200 Subject: [PATCH] Update tracert.sh --- tracert.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tracert.sh b/tracert.sh index db3a0de..cd541cc 100755 --- a/tracert.sh +++ b/tracert.sh @@ -39,6 +39,7 @@ i=1 while true do ping=$(ping -t $i -c 1 -W $timeout $host | grep -E "From|from") + [[ $? > 0 && $i == 1 ]] && exit if [[ $(echo $ping | cut -d ' ' -f 1) == "64" ]] then #Last hop in route