diff options
author | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2017-05-24 11:16:27 +0200 |
---|---|---|
committer | Aleksander Mistewicz <a.mistewicz@samsung.com> | 2017-08-08 10:18:08 +0200 |
commit | a9efeb206a35cbb57d31328de2792f697dfa38f9 (patch) | |
tree | 48bf3f951c5b1dac58a3a4a4979e2d0e6458ce22 /tsp/scripts | |
parent | 6f5c10c3d2995a35bfed48401301404ffb0f0643 (diff) | |
download | major-a9efeb206a35cbb57d31328de2792f697dfa38f9.tar.gz major-a9efeb206a35cbb57d31328de2792f697dfa38f9.tar.bz2 major-a9efeb206a35cbb57d31328de2792f697dfa38f9.zip |
Fix free_diskspace docs and removal
Change-Id: I60909d759f740a636589dc6cf02c7c3c345926c1
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-x | tsp/scripts/free_diskspace.sh | 5 |
1 files 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 <a.mistewicz@samsung.com> # 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 |