diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2016-05-23 04:19:40 +0500 |
---|---|---|
committer | Omair Javaid <omair.javaid@linaro.org> | 2016-05-23 04:19:40 +0500 |
commit | 782291108c6b480105dc5a278853b4dbcd14c334 (patch) | |
tree | 74ab56fab8db2647cb63f878dc11958a6a03d9af | |
parent | e3fe757d359af3c9e0ee6c8baa8fc7cea04f9adf (diff) |
Fix path buy changing to log home directory before actually deleting.
-rwxr-xr-x | androidTest.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/androidTest.sh b/androidTest.sh index 0902f2e..08b0795 100755 --- a/androidTest.sh +++ b/androidTest.sh @@ -23,7 +23,9 @@ export dir_count=$(ls -l $logHome/ | grep -c ^d) if [ $dir_count -gt 10 ] then - ls -t $logHome/ | tail -n +11 | tr '\n' ' ' | xargs rm -rf -- + cd $logHome + ls -t | tail -n +11 | xargs -d '\n' rm -rf -- + cd - fi today=`date '+%Y_%m_%d__%H_%M_%S'` |