Fix free_diskspace docs and removal 35/130935/3
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Wed, 24 May 2017 09:16:27 +0000 (11:16 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 8 Aug 2017 08:18:08 +0000 (10:18 +0200)
Change-Id: I60909d759f740a636589dc6cf02c7c3c345926c1

tsp/scripts/free_diskspace.sh

index d497092..efdcd1f 100755 (executable)
@@ -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