2022-05-09 17:10:40 +00:00
|
|
|
//go:build !windows
|
|
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
|
|
package exec
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"golang.org/x/sys/unix"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func IsExecutable(path string) bool {
|
2023-01-20 22:19:54 +02:00
|
|
|
return unix.Access(path, unix.X_OK) == nil
|
2022-05-09 17:10:40 +00:00
|
|
|
}
|