miller/internal/pkg/platform/shellrun_notwindows.go
2021-11-11 14:15:13 -05:00

12 lines
369 B
Go

// ================================================================
// Wraps 'sh -c foo bar' or 'cmd /c foo bar', nominally for regression-testing.
// ================================================================
//go:build !windows
// +build !windows
package platform
func GetShellRunArray(command string) []string {
return []string{"/bin/sh", "-c", command}
}