mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Check for {g,}date existance before trying --version
This commit is contained in:
parent
7804a5e477
commit
902c6ec4a3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue