From 34b65bb904ed75325b924b4b81c8aa395ef89d7b Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sun, 1 Jun 2014 20:21:14 -0500 Subject: [PATCH] Safeguard test teardown (#45) --- test/test_helper.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.bash b/test/test_helper.bash index 9e10401..643b3d7 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -7,5 +7,5 @@ setup() { } teardown() { - rm -f "$TMP"/* + [ -d "$TMP" ] && rm -f "$TMP"/* }