From c0bd4535003ad5b6f89148af09a6a864037db6af Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Jun 2018 16:43:58 +0200 Subject: [PATCH] phase2: cleanup.sh: add hack to remove npm / jsmake debris Signed-off-by: Jo-Philipp Wich --- phase2/cleanup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phase2/cleanup.sh b/phase2/cleanup.sh index cd425d1..2af7b9f 100755 --- a/phase2/cleanup.sh +++ b/phase2/cleanup.sh @@ -9,6 +9,8 @@ current_mode="$4" running_builders="$(wget -qO- "${buildbot_url%/}/json/slaves/$current_slave?as_text=1" | sed -ne 's,^.*"builderName": "\(.*\)".*$,\1,p')" +find /tmp/ -maxdepth 1 -mtime +1 '(' -name 'npm-*' -or -name 'jsmake-*' ')' -print0 | xargs -0 -r rm -vr + is_running() { local running_builder for running_builder in $running_builders; do -- 2.30.2