mirror of
https://github.com/OliveTin/OliveTin
synced 2026-08-30 14:35:40 +00:00
20 lines
374 B
Go
20 lines
374 B
Go
package executor
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
func runExecToolHelperKillCommand(attrs map[string]string) {
|
|
helper, killID := "", ""
|
|
if attrs != nil {
|
|
helper = attrs["helper"]
|
|
killID = attrs["kill_id"]
|
|
}
|
|
if helper == "" || killID == "" {
|
|
return
|
|
}
|
|
killCmd := exec.CommandContext(context.Background(), "olivetin-"+helper, "kill", killID)
|
|
_ = killCmd.Run()
|
|
}
|