From ab9046dcffd9e73db69b7f1d35c0308d5fdc46f2 Mon Sep 17 00:00:00 2001 From: Omair Javaid Date: Sun, 22 May 2016 18:18:12 +0500 Subject: Make sure we are considering newlines as separator for xargs --- androidTest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'` -- cgit v1.2.3