print script output if executed
All checks were successful
builder / build (push) Successful in 19s
deployer / go-releaser (push) Successful in 29s

This commit is contained in:
abs3nt 2024-07-20 19:20:20 -07:00
parent 538e2f69de
commit c243b76969
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

View File

@ -198,9 +198,8 @@ func getOrDownload(results *wallhaven.SearchResults, r *rand.Rand, downloadPath
}
func runScript(imgPath, script string) error {
_, err := exec.Command(script, imgPath).Output()
if err != nil {
return err
}
return nil
cmd := exec.Command(script, imgPath)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run()
}