From 18f053ac3192c515dacf990e3ff3a890f0763239 Mon Sep 17 00:00:00 2001 From: Michel Hermier Date: Fri, 3 Dec 2021 11:53:42 +0100 Subject: [PATCH] Shell: Remove sigpipe.sh.out artefact after failure Helps to avoid to erroneously add the file to git. --- Userland/Shell/Tests/sigpipe.sh | 1 + 1 file changed, 1 insertion(+) 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