Update tracert.sh

This commit is contained in:
Kim Oliver Drechsel 2019-08-21 14:52:11 +02:00 committed by GitHub
parent fa5c43734c
commit cebfaa4acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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