mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-06 04:19:23 +00:00
* initial windows port. Signed-off-by: Sean Yen <seanyen@microsoft.com> Signed-off-by: Derek Nola <derek.nola@suse.com> Co-authored-by: Derek Nola <derek.nola@suse.com> Co-authored-by: Wei Ran <weiran@microsoft.com>
21 lines
337 B
Go
21 lines
337 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
const programPostfix = ""
|
|
|
|
func runExec(cmd string, args []string, calledAsInternal bool) (err error) {
|
|
if err := syscall.Exec(cmd, args, os.Environ()); err != nil {
|
|
return errors.Wrapf(err, "exec %s failed", cmd)
|
|
}
|
|
return nil
|
|
}
|