diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2016-05-22 18:18:12 +0500 |
---|---|---|
committer | Omair Javaid <omair.javaid@linaro.org> | 2016-05-22 18:18:12 +0500 |
commit | ab9046dcffd9e73db69b7f1d35c0308d5fdc46f2 (patch) | |
tree | 70a00078b231e55eca6dbe288bad9a94544bd525 | |
parent | 97bc8adab80ca199cfa7333e3be7007313ee63ab (diff) |
Make sure we are considering newlines as separator for xargs
-rwxr-xr-x | androidTest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/androidTest.sh b/androidTest.sh index f9ae88e..c8b83a1 100755 --- a/androidTest.sh +++ b/androidTest.sh @@ -15,7 +15,7 @@ dir_count=$(ls -l $logHome/ | grep -c ^d) if [ $dir_count -gt 10 ] then - ls -t $logHome/ | tail -n +11 | xargs rm -rf + ls -t $logHome/ | tail -n +11 | xargs -d '\n' rm -rf -- fi today=`date '+%Y_%m_%d__%H_%M_%S'` |