summaryrefslogtreecommitdiff
path: root/bin/cleanup
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-25 16:49:02 +0100
committerErich Eckner <git@eckner.net>2017-11-25 16:49:02 +0100
commite2511c2fa5ee7ad726d3348c8dc351ad561fd574 (patch)
tree82d4e3af0212110e50f810726915f582b1753ad1 /bin/cleanup
parentf894f608f78b6d6e47c7d185ba9a33c160ac2f4b (diff)
downloadbuilder-e2511c2fa5ee7ad726d3348c8dc351ad561fd574.tar.xz
bin/cleanup: clean ssh-log, too
Diffstat (limited to 'bin/cleanup')
-rwxr-xr-xbin/cleanup4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/cleanup b/bin/cleanup
index 5177e81..e342873 100755
--- a/bin/cleanup
+++ b/bin/cleanup
@@ -85,6 +85,10 @@ find "${build_log_directory}/error" -maxdepth 1 -type f -printf '%f\n' | \
done
}
+# only keep last 50 lines of ssh-log
+tail -n50 "${work_dir}/ssh-log" | \
+ sponge "${work_dir}/ssh-log"
+
# only keep namcap logs of last 2 weeks for succeeded packages
find "${build_log_directory}/success" -maxdepth 1 -type f -mtime +14 \
-not -exec zgrep -q '^+.*ELF file .* has text relocations' '{}' \; \