Shell: Remove sigpipe.sh.out artefact after failure

Helps to avoid to erroneously add the file to git.
This commit is contained in:
Michel Hermier 2021-12-03 11:53:42 +01:00 committed by Ali Mohammad Pur
parent 62af3acf56
commit 18f053ac31
Notes: sideshowbarker 2024-07-17 22:49:41 +09:00

View file

@ -13,6 +13,7 @@ rm -f sigpipe.sh.out
# So the test only fails if sigpipe.sh.out exists (since then `exit 1` runs),
# not if the `test` statement returns false.
if test -e sigpipe.sh.out {
rm -f sigpipe.sh.out
fail sigpipe did not terminate further commands
} else {
echo PASS