github.com/andrewhsu/cli/v2@v2.0.1-0.20210910131313-d4b4061f5b89/pkg/findsh/find.go (about)

     1  // +build !windows
     2  
     3  package findsh
     4  
     5  import "os/exec"
     6  
     7  // Find locates the `sh` interpreter on the system.
     8  func Find() (string, error) {
     9  	return exec.LookPath("sh")
    10  }