Skip to content

Commit

Permalink
fix: execute command in local
Browse files Browse the repository at this point in the history
  • Loading branch information
aby913 committed Aug 14, 2024
1 parent 5cda4a3 commit afe2f35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/k3s/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ type UninstallK3s struct {

func (t *UninstallK3s) Execute(runtime connector.Runtime) error {
var scriptPath = path.Join(common.BinDir, "k3s-uninstall.sh")
runtime.GetRunner().SudoCmdExt(scriptPath, false, true)
if _, err := runtime.GetRunner().Host.CmdExt(scriptPath, false, true); err != nil {
return err
}
return nil
}

0 comments on commit afe2f35

Please sign in to comment.