mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:44:04 +08:00
Check for {g,}date existance before trying --version
This commit is contained in:
parent
7804a5e477
commit
902c6ec4a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user