We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug commandExistsSync("somecmd") returns false if somecmd doesn't support the --version option or exits with a non-zero exit code.
commandExistsSync("somecmd")
somecmd
--version
To Reproduce Call commandExistsSync("unzip").
commandExistsSync("unzip")
Expected behavior It should return true, but returns false instead.
true
false
Desktop
Additional context Not all commands support --version, so commandExistsSync should not rely on it. Regressed here.
commandExistsSync
The text was updated successfully, but these errors were encountered:
ElenaDiachenko
No branches or pull requests
Describe the bug
commandExistsSync("somecmd")
returns false ifsomecmd
doesn't support the--version
option or exits with a non-zero exit code.To Reproduce
Call
commandExistsSync("unzip")
.Expected behavior
It should return
true
, but returnsfalse
instead.Desktop
Additional context
Not all commands support
--version
, socommandExistsSync
should not rely on it.Regressed here.
The text was updated successfully, but these errors were encountered: