]> gitweb.fluxo.info Git - scripts.git/commitdiff
Use a for instead of a while loop at adb-backups, fixing a early halt of script
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Sep 2017 11:22:00 +0000 (08:22 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Sep 2017 11:22:00 +0000 (08:22 -0300)
android-backup

index 24d79a2bd69e4d8ed6b6924f811f3b86de26d368..359f41a5009f9dbf4f41184d53548eb5be19fa98 100755 (executable)
@@ -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