diff options
author | Luke Pahler <luke.linked.in+git@gmail.com> | 2018-05-19 14:18:18 -0600 |
---|---|---|
committer | Luke Pahler <luke.linked.in+git@gmail.com> | 2018-05-19 14:18:18 -0600 |
commit | 44023462cef154716e0ec820bb1bc8d3e77a440e (patch) | |
tree | af7de44984d663e83c293b6dfaddf47c307a5e79 | |
parent | 60a06067a7683d41653fe83ec5cbf6e74758fd81 (diff) | |
download | andbackup-44023462cef154716e0ec820bb1bc8d3e77a440e.tar.gz andbackup-44023462cef154716e0ec820bb1bc8d3e77a440e.tar.xz |
Fix grammar and spelling mistakes.
-rwxr-xr-x | andbackup.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/andbackup.sh b/andbackup.sh index e8bbae8..56d3d39 100755 --- a/andbackup.sh +++ b/andbackup.sh @@ -34,7 +34,7 @@ usage() { # If using vim to reflow, execute ':set tw=65' out=" Andbackup is a basic Android application (or package) backup and -restore script. It can backup a single application, or a a list +restore script. It can backup a single application, or a list of applications provided in a text file (one application name per line). It can do the same for application restore. @@ -129,7 +129,7 @@ backup_app() { # Backup the apk file if it exists if [ ! -z "${apk}" ] && [ -f "${apk}" ]; then # Delete the old backup first - # There is a permissions issue querk when the backup was originall taken in + # There is a permissions issue querk when the backup was originally taken in # recovery mode, but later is taken in android (Permission denied for no # apparent reason) [ -f "${backups}/${app}/base.apk" ] && rm -f "${backups}/${app}/base.apk" @@ -159,8 +159,7 @@ backup_app() { fi taropts=" -C ${data} -c " - # Delete cache directory if it exists - # This will sometimes free up significant amounts of space + # Decide if excluding cache or preserving if [[ ! -d "${data}/cache" ]]; then linfo "Cache doesn't exist for ${app}" elif [ "$preserve_cache" -eq 0 ]; then @@ -276,7 +275,7 @@ list_backup_apps() { app="$(echo ${line} | tr -s ' ' | cut -d ' ' -f 1)" # Parse out the arguments (if any) args="$(echo ${line} | tr -s ' ' | cut -s -d ' ' -f 2-)" - # Exceute the backup + # Execute the backup backup_app "${app}" "${args}" done } |