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

Open
IndianBoy42 opened this issue May 29, 2024 · 2 comments · May be 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

0xzhzh added a commit to 0xzhzh/just that referenced this issue Oct 25, 2024
Closes casey#2109 (but with a function name that is shorter and more familiar)
@0xzhzh 0xzhzh linked a pull request Oct 25, 2024 that will close this issue
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