Skip to content

Commit

Permalink
feat: add CombinedOutput to PowerShell execution.
Browse files Browse the repository at this point in the history
  • Loading branch information
noahzeisberg committed Jan 21, 2024
1 parent 6ab91b9 commit 1493d12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ func PowerShellRun(command string) {
Error("Failed to close pipe..")
return
}
out, err := cmd.CombinedOutput()
if err != nil {
Error(err.Error())
}
Print(string(out))
}

0 comments on commit 1493d12

Please sign in to comment.