Skip to content

Commit

Permalink
change: add log for RunCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtalk committed Jan 18, 2024
1 parent 38c24f7 commit 4737ae5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions myexec/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func RunShell(shellString string) (exitCode int, err error) {

func RunCommand(cmdName string, args ...string) error {
cmd := Command(cmdName, args...)
logger.Info("run command", "cmd", cmd.String())

// add cmd dir path to $PATH
if cmdDir := filepath.Dir(cmdName); cmdDir != "" {
Expand Down

0 comments on commit 4737ae5

Please sign in to comment.