mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 17:05:38 +08:00
16 lines
274 B
Go
16 lines
274 B
Go
package settings
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
func runCommand(name string, args ...string) error {
|
|
command := exec.Command(name, args...)
|
|
command.Env = os.Environ()
|
|
command.Stdin = os.Stdin
|
|
command.Stdout = os.Stderr
|
|
command.Stderr = os.Stderr
|
|
return command.Run()
|
|
}
|