garm/util/exec/exec_nix.go

13 lines
175 B
Go
Raw Normal View History

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