From eb6e23577ebd2a7de151fc46bb4c8e9283a6199e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 5 Sep 2017 08:22:00 -0300 Subject: Use a for instead of a while loop at adb-backups, fixing a early halt of script --- android-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3