summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 31135ab..16750b6 100755
--- a/tests.sh
+++ b/tests.sh
@@ -33,6 +33,13 @@ function cleanup() {
return
fi
+ # Don't force rm to deal with long paths
+ for dir in "$TMP"/deep/*/*; do
+ if [ -d "$dir" ]; then
+ (cd "$dir" && rm -rf *)
+ fi
+ done
+
rm -rf "$TMP"
}
trap cleanup EXIT