denilsonsa / prettyping

`prettyping` is a wrapper around the standard `ping` tool, making the output prettier, more colorful, more compact, and easier to read.
http://denilsonsa.github.io/prettyping/
MIT License
1.21k stars 78 forks source link

Prettyping -6 calls ping6 but newer distributions uses ping -6 and have no ping6 binary #28

Open kuon opened 4 years ago

kuon commented 4 years ago

Currently, prettyping -6 calls ping6 binary, but current ping supports a -6 flag directly. On archlinux there is no ping6 binary anymore so prettyping -6 fails.

I think the best fix would be to check if ping6 exists, and if not, call ping -6 instead.