Check for {g,}date existance before trying --version

This commit is contained in:
Aaron Gyes 2019-09-21 18:42:55 -07:00
parent 7804a5e477
commit 902c6ec4a3

View File

@ -136,7 +136,7 @@ end
# lame timer
for program in {g,}date
if $program --version 1>/dev/null 2>/dev/null
if command -q $program && $program --version 1>/dev/null 2>/dev/null
set milli $program
set unit ms
break