Skip to content

Commit a5bcf50

Browse files
committed
chore(cmd): move logger to top of cmd loop
1 parent 2678b43 commit a5bcf50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/system/cmds.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ func Run(args []string) (string, error) {
5757
func RunAll(list CmdsList) error {
5858
// Run each installation command
5959
for _, args := range list {
60+
log.Debug(fmt.Sprintf("%s: %s", style.Green.Render("Running"), strings.Join(args, " ")))
6061
cmd := exec.Command(args[0], args[1:]...)
6162
output, err := cmd.CombinedOutput()
6263
if err != nil {
6364
log.Error(fmt.Sprintf("%s: %s", style.Red.Render("Failed"), strings.Join(args, " ")))
6465
return fmt.Errorf(CmdFailedErrorMsg, strings.Join(args, " "), output, err)
6566
}
66-
log.Debug(fmt.Sprintf("%s: %s", style.Green.Render("Running"), strings.Join(args, " ")))
67+
6768
}
6869
return nil
6970
}

0 commit comments

Comments
 (0)