projects
/
buildbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b9337
)
phase2: cleanup.sh: add hack to remove npm / jsmake debris
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 20 Jun 2018 14:43:58 +0000
(16:43 +0200)
committer
Thibaut VARÈNE
<hacks@slashdirt.org>
Wed, 20 Jun 2018 15:33:08 +0000
(17:33 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase2/cleanup.sh
patch
|
blob
|
history
diff --git
a/phase2/cleanup.sh
b/phase2/cleanup.sh
index cd425d121b811ccc7560d2a8aa229f223663ce5d..2af7b9fb2c0f3cac5545013037c9afb20e4b5173 100755
(executable)
--- 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