just icon indicating copy to clipboard operation
just copied to clipboard

`executable_exists` function to check whether a certain program exists and is executable on the path

Open IndianBoy42 opened this issue 1 year ago • 2 comments

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

IndianBoy42 avatar May 29 '24 08:05 IndianBoy42

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

casey avatar May 29 '24 08:05 casey

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

IndianBoy42 avatar May 29 '24 10:05 IndianBoy42