Added temporary file cleanup
All checks were successful
/ test (push) Successful in 16s

This commit is contained in:
Eduard Urbach 2025-07-07 15:29:53 +02:00
parent b55b582b69
commit f6eb30e460
Signed by: akyoto
GPG key ID: 49226B848C78F6C8

View file

@ -21,6 +21,7 @@ func Exec(file *os.File) error {
return err return err
} }
defer os.Remove(file.Name())
cmd := exec.Command(file.Name()) cmd := exec.Command(file.Name())
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
cmd.Stdin = os.Stdin cmd.Stdin = os.Stdin