From: Mike Frysinger Date: Thu, 6 Sep 2012 17:04:09 +0000 (-0400) Subject: auto prune older images X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=42e1a176a721c5ae8876a42ee79b15997b1ba76d;p=home.git auto prune older images --- 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 <