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
executable_exists
As an example I want my install scripts to use nala if available and fall back to apt-get if not.
nala
apt-get
The text was updated successfully, but these errors were encountered:
This seems reasonable. I think the only question is how to do it in a cross-platform way without relying on any particular shell.
Sorry, something went wrong.
Looks like crates exist for this: https://crates.io/crates/which
Add which function for finding executables in PATH
6fb2400
Closes casey#2109 (but with a function name that is shorter and more familiar)
Successfully merging a pull request may close this issue.
As an example I want my install scripts to use
nala
if available and fall back toapt-get
if not.The text was updated successfully, but these errors were encountered: