mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-19 17:53:53 +00:00
Fix running elemental
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/kairos-io/kairos/pkg/utils"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
@@ -81,7 +82,7 @@ func (s *State) RunStageOp(stage string) func(context.Context) error {
|
|||||||
if internalUtils.Log.GetLevel() == zerolog.DebugLevel {
|
if internalUtils.Log.GetLevel() == zerolog.DebugLevel {
|
||||||
cmd = fmt.Sprintf("%s --debug", cmd)
|
cmd = fmt.Sprintf("%s --debug", cmd)
|
||||||
}
|
}
|
||||||
output, err := internalUtils.CommandWithPath(cmd)
|
output, err := utils.SH(cmd)
|
||||||
internalUtils.Log.Debug().Msg(output)
|
internalUtils.Log.Debug().Msg(output)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user