summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextensions/mason/mason-report.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/mason/mason-report.sh b/extensions/mason/mason-report.sh
index 4368a896..f6cca0ef 100755
--- a/extensions/mason/mason-report.sh
+++ b/extensions/mason/mason-report.sh
@@ -293,5 +293,5 @@ mv "$logfile" "$SERVER_PATH/$BUILD_LOG"
# Cleanup
mkdir -p /srv/distbuild/remove
-mv /srv/distbuild/!(remove) /srv/distbuild/remove
-rm -r /srv/distbuild/remove
+find /srv/distbuild/ -not \( -name "remove" -o -name "trees.cache.pickle" \) -mindepth 1 -maxdepth 1 -exec mv '{}' /srv/distbuild/remove \;
+find /srv/distbuild/remove -delete