Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`command -v <cmd>` returns a path to binary to stdout if it's found in PATH. The condition deciding if `<cmd>` is installed redirects stdout to `/dev/null` and so this check could never work. This change redirects stderr instead of stdout to compare the output of `command -v <cmd>` properly with an empty string. I unified the redirection to a file in whole file. The empty space behind redirection is not needed.
- Loading branch information