From 44023462cef154716e0ec820bb1bc8d3e77a440e Mon Sep 17 00:00:00 2001 From: Luke Pahler Date: Sat, 19 May 2018 14:18:18 -0600 Subject: Fix grammar and spelling mistakes. --- andbackup.sh | 9 ++++----- 1 file 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 } -- cgit v1.2.3