summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Hermier <michel.hermier@gmail.com>2021-12-03 11:53:42 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-12-13 16:20:29 +0330
commit18f053ac3192c515dacf990e3ff3a890f0763239 (patch)
tree2b920ea3a3b8fdf122dedcf3a57234bf98b1e4c5
parent62af3acf5692f92690acddd3776961d9fb224606 (diff)
downloadserenity-18f053ac3192c515dacf990e3ff3a890f0763239.zip
Shell: Remove sigpipe.sh.out artefact after failure
Helps to avoid to erroneously add the file to git.
-rw-r--r--Userland/Shell/Tests/sigpipe.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Shell/Tests/sigpipe.sh b/Userland/Shell/Tests/sigpipe.sh
index af66fef632..9f8ba36f66 100644
--- a/Userland/Shell/Tests/sigpipe.sh
+++ b/Userland/Shell/Tests/sigpipe.sh
@@ -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