mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
matugen: make check codition an array
This commit is contained in:
@@ -6,3 +6,12 @@ func CommandExists(cmd string) bool {
|
||||
_, err := exec.LookPath(cmd)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
func AnyCommandExists(cmds ...string) bool {
|
||||
for _, cmd := range cmds {
|
||||
if CommandExists(cmd) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user