aboutsummaryrefslogtreecommitdiff
path: root/android-backup
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-05 08:22:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-05 08:22:00 -0300
commiteb6e23577ebd2a7de151fc46bb4c8e9283a6199e (patch)
treec7f369b3282a2ea5630d4e7f9cee1eb2b4025670 /android-backup
parenta1e91d0b0bb20c10241dfa1930c83cc7bbdf126c (diff)
downloadscripts-eb6e23577ebd2a7de151fc46bb4c8e9283a6199e.tar.gz
scripts-eb6e23577ebd2a7de151fc46bb4c8e9283a6199e.tar.bz2
Use a for instead of a while loop at adb-backups, fixing a early halt of script
Diffstat (limited to 'android-backup')
-rwxr-xr-xandroid-backup2
1 files changed, 1 insertions, 1 deletions
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