summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2017-05-24 09:16:27 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-06-06 11:48:04 (GMT)
commit7becd5fc183a92655f049829ec54b1098c785053 (patch)
tree467fa4c0fe85a210984c14d3f30585e99e545aaa
parent62a6f36e049f812695e5e7d2a317b310b9091aa4 (diff)
downloadmajor-7becd5fc183a92655f049829ec54b1098c785053.zip
major-7becd5fc183a92655f049829ec54b1098c785053.tar.gz
major-7becd5fc183a92655f049829ec54b1098c785053.tar.bz2
Fix free_diskspace docs and removalrefs/changes/35/130935/2
Change-Id: I60909d759f740a636589dc6cf02c7c3c345926c1
-rwxr-xr-xtsp/scripts/free_diskspace.sh5
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