summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-05-23 14:34:21 +0200
committerAleksander Mistewicz <a.mistewicz@samsung.com>2016-07-11 10:29:46 +0200
commit4fb383fcb8dd21c696a4d7f2870d3cba21a79dad (patch)
tree78c2160105ba696120f396155284bd7c62b0df3d /tsp/scripts
parent41dbc4d7532db77f6e005b0800e4b0ffb1005f20 (diff)
downloadmajor-4fb383fcb8dd21c696a4d7f2870d3cba21a79dad.tar.gz
major-4fb383fcb8dd21c696a4d7f2870d3cba21a79dad.tar.bz2
major-4fb383fcb8dd21c696a4d7f2870d3cba21a79dad.zip
Omit snapshots in tsp/scripts/free_diskspace.sh
Change-Id: I896826e27b71b617c42bb8fc3a3cca30f40d7c4b Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/free_diskspace.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tsp/scripts/free_diskspace.sh b/tsp/scripts/free_diskspace.sh
index 88ff2ed..1cee18d 100755
--- a/tsp/scripts/free_diskspace.sh
+++ b/tsp/scripts/free_diskspace.sh
@@ -20,5 +20,10 @@
# Delete ones that were modified at least 3 days ago.
for i in $(find "${HOME}/ws/dwn" -type d -mtime +2)
do
+ if grep -q "Snapshot" "$(ls $i/diff-*.report)"
+ then
+ echo "Skipping " "$i"
+ continue
+ fi
rm -vr "$i"
done