Skip to content

Commit

Permalink
fix: Pass correct variable for lscpu command to work (#280)
Browse files Browse the repository at this point in the history
The exec.Command() function was being passed an incorrect argument instead of the actual command to be executed
  • Loading branch information
mrajagopal authored Apr 11, 2023
1 parent baec991 commit 36e36eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ type execShellCommand struct {
}

func (e execShellCommand) Exec(cmd string, arg ...string) ([]byte, error) {
execCmd := exec.Command(name, arg...)
execCmd := exec.Command(cmd, arg...)
return execCmd.Output()
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 36e36eb

Please sign in to comment.