garm/util/exec/exec_nix.go
Gabriel Adrian Samfira 0b70a30944 Add external providers and an example
Add the ability to externalize providers to a binary on disk.
2022-05-09 17:11:47 +00:00

16 lines
205 B
Go

//go:build !windows
// +build !windows
package exec
import (
"golang.org/x/sys/unix"
)
func IsExecutable(path string) bool {
if unix.Access(path, unix.X_OK) == nil {
return true
}
return false
}