bdamele/icmpsh

$IP variable

Opened this issue · 0 comments

At lines 16,17 probably there's a bug getting the local ip address when there is no eth* interface.
I suggest changing lines 16,17 to one line : IP=$(ifconfig | grep inet | awk '{print $2}' | head -1)