Skip to content

Commit

Permalink
use log
Browse files Browse the repository at this point in the history
  • Loading branch information
benwaffle committed Jun 19, 2024
1 parent 704e844 commit 54eb75f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/utils/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"io"
"log"
"os"
"os/exec"
"os/user"
Expand All @@ -17,7 +18,7 @@ func RunCommand(cmdStr, usr string) ([]byte, error) {
return nil, err
}

fmt.Printf("> Running command as %s: %s\n", usr, cmdStr)
log.Printf("> Running command as %s: %s\n", usr, cmdStr)

cmd := exec.Command("sh", "-c", cmdStr)
cmd.SysProcAttr = &syscall.SysProcAttr{}
Expand Down

0 comments on commit 54eb75f

Please sign in to comment.