Skip to content
New issue

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 function to check whether a certain program exists and is executable on the path #2109

Closed
IndianBoy42 opened this issue May 29, 2024 · 2 comments · Fixed by #2440

Comments

@IndianBoy42
Copy link

As an example I want my install scripts to use nala if available and fall back to apt-get if not.

@casey
Copy link
Owner

casey commented May 29, 2024

This seems reasonable. I think the only question is how to do it in a cross-platform way without relying on any particular shell.

@IndianBoy42
Copy link
Author

Looks like crates exist for this: https://crates.io/crates/which

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants