From 42e1a176a721c5ae8876a42ee79b15997b1ba76d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 6 Sep 2012 13:04:09 -0400 Subject: [PATCH] auto prune older images --- .bin/cros-board | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bin/cros-board b/.bin/cros-board index 5ccfb14..30603da 100755 --- a/.bin/cros-board +++ b/.bin/cros-board @@ -86,6 +86,9 @@ if ${ARG_DEV_USER} ; then sync & fi +cd "${IMAGES}" +rm -rf $(ls -td1R `find -mindepth 1 -maxdepth 1 -type d` | sed -e 1d -e 2d) + cat <