Run the rm in the same subshell
authorPeje Nilsson <peje66@gmail.com>
Wed, 14 Jun 2017 11:23:58 +0000 (11:23 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 14 Jun 2017 12:32:06 +0000 (08:32 -0400)
tests/Makefile

index e4983ad2e1585c1f5700c5cf188a696a7a6b639e..f1a37975d22b0081a5975f1a73fa976f47471269 100644 (file)
@@ -40,7 +40,7 @@ regress:
            if advent $$OPTS < $${file}.log >/tmp/regress$$$$ 2>&1; \
            then diff --text -u $${file}.chk /tmp/regress$$$$ || exit 1; \
            else echo "*** Nonzero return status on $${file}!"; exit 1; fi \
-       done
-       @rm -f /tmp/regress$$$$
+       done; \
+       rm -f /tmp/regress$$$$
 
 # end