Closed trajano closed 8 months ago
{{ .CommandAvailable "some-command" }}
But this is a bit complicated because on bash it should be doing something like command -v "$1" > /dev/null
command -v "$1" > /dev/null
{{ .FileExists "{{.Home}}/my-stuff" }}
Would be a simple [ -e $1 ]
[ -e $1 ]
@trajano this is a duplicate request of #60
Oops, I changed the title of the other one.
Code of Conduct
What would you like to see changed/added?
But this is a bit complicated because on bash it should be doing something like
command -v "$1" > /dev/null
Would be a simple
[ -e $1 ]