From: Silvio Rhatto Date: Tue, 5 Sep 2017 11:22:00 +0000 (-0300) Subject: Use a for instead of a while loop at adb-backups, fixing a early halt of script X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=eb6e23577ebd2a7de151fc46bb4c8e9283a6199e;p=scripts.git Use a for instead of a while loop at adb-backups, fixing a early halt of script --- diff --git a/android-backup b/android-backup index 24d79a2..359f41a 100755 --- a/android-backup +++ b/android-backup @@ -46,7 +46,7 @@ adb backup -all #done # Files: incremental basic copy -adb shell ls -1 $base | grep -v ^Music | while read file; do +for file in `adb shell ls -1 $base | grep -v '^Music'`; do adb-sync --delete --reverse $base/$file files/ done