mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-11 17:26:57 +02:00
14 lines
260 B
Go
14 lines
260 B
Go
//go:build !windows
|
|
|
|
package nodeclient
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
// shellCmd construit la commande shell hors Windows : bash -c.
|
|
func shellCmd(ctx context.Context, command string) *exec.Cmd {
|
|
return exec.CommandContext(ctx, "bash", "-c", command)
|
|
}
|