From a9efeb206a35cbb57d31328de2792f697dfa38f9 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Wed, 24 May 2017 11:16:27 +0200 Subject: [PATCH] Fix free_diskspace docs and removal Change-Id: I60909d759f740a636589dc6cf02c7c3c345926c1 --- tsp/scripts/free_diskspace.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tsp/scripts/free_diskspace.sh b/tsp/scripts/free_diskspace.sh index d497092..efdcd1f 100755 --- a/tsp/scripts/free_diskspace.sh +++ b/tsp/scripts/free_diskspace.sh @@ -17,7 +17,7 @@ # Author: Aleksander Mistewicz # Assume that most of the space is taken up by downloaded images. -# Delete ones that were modified at least 3 days ago. +# Delete ones that were modified at least 2 days ago. export TSP_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)/.." @@ -32,6 +32,7 @@ do echo "Snapshot, skipping:" "$i" continue fi - rm -vr "$(dirname "${diff_file}")" + rm -vr "$i" + break done done -- 2.7.4