Skip to content

Commit

Permalink
feat: clean command code
Browse files Browse the repository at this point in the history
  • Loading branch information
nawetimebomb committed Oct 15, 2024
1 parent 5c148ec commit bf843e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions compiler/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ func BackendRun() {
}

if Stanczyk.options.run {
b := new(strings.Builder)
cmd := exec.Command("./output")
cmd.Stdout = b
cmd.Run()
fmt.Print(b.String())
stdout, err := exec.Command("./output").Output()
CheckError(err, "backend.go-3")
fmt.Print(string(stdout))

if Stanczyk.options.clean {
_, _ = exec.Command("rm", "output").Output()
Expand Down

0 comments on commit bf843e9

Please sign in to comment.