mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 12:13:31 -04:00
core: add slices, paths, exec utils
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package utils
|
||||
|
||||
import "os/exec"
|
||||
|
||||
func CommandExists(cmd string) bool {
|
||||
_, err := exec.LookPath(cmd)
|
||||
return err == nil
|
||||
}
|
||||
Reference in New Issue
Block a user