summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmair Javaid <omair.javaid@linaro.org>2016-05-23 03:08:12 +0500
committerOmair Javaid <omair.javaid@linaro.org>2016-05-23 03:08:12 +0500
commite3fe757d359af3c9e0ee6c8baa8fc7cea04f9adf (patch)
treed955b43b092ba1945fb2afd6e697aa185c0d3920
parent70102c3d8951a21f22fb8f4b58de65effc5f596e (diff)
Another try to make old logs deletion work.
This time i have removed newline delimiter with a space. I hope this works.
-rwxr-xr-xandroidTest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/androidTest.sh b/androidTest.sh
index 4223a77..0902f2e 100755
--- a/androidTest.sh
+++ b/androidTest.sh
@@ -23,7 +23,7 @@ export dir_count=$(ls -l $logHome/ | grep -c ^d)
if [ $dir_count -gt 10 ]
then
- ls -t $logHome/ | tail -n +11 | xargs -d '\n' rm -rf --
+ ls -t $logHome/ | tail -n +11 | tr '\n' ' ' | xargs rm -rf --
fi
today=`date '+%Y_%m_%d__%H_%M_%S'`