From: Jo-Philipp Wich Date: Wed, 20 Jun 2018 14:43:58 +0000 (+0200) Subject: phase2: cleanup.sh: add hack to remove npm / jsmake debris X-Git-Tag: v1~159 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=c0bd4535003ad5b6f89148af09a6a864037db6af;p=buildbot.git phase2: cleanup.sh: add hack to remove npm / jsmake debris Signed-off-by: Jo-Philipp Wich --- 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