summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2017-10-25 00:10:18 -0600
committerAaron Ball <nullspoon@oper.io>2017-10-25 00:10:18 -0600
commit25d920e381659bd43574b49882e4cc64a5178db8 (patch)
tree395f92c6e4b4f5a028122ee82f84281f9e07313f
parentb9347c64bc9598150f714ff10e25e1e6825d4958 (diff)
parent0bd5365440d500fe4357293d7a880a95a8642e18 (diff)
downloadandbackup-25d920e381659bd43574b49882e4cc64a5178db8.tar.gz
andbackup-25d920e381659bd43574b49882e4cc64a5178db8.tar.xz
Merge branch 'apk-bug'
-rwxr-xr-xandbackup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/andbackup.sh b/andbackup.sh
index 51b41eb..86fdefa 100755
--- a/andbackup.sh
+++ b/andbackup.sh
@@ -124,10 +124,10 @@ backup_app() {
# No need to stop the application because we're in recovery mode
# Create backup destination if not exist
- [ ! -d "${backups}" ] && mkdir -p "${backups}"
+ [ ! -d "${backups}/${app}" ] && mkdir -p "${backups}/${app}"
# Backup the apk file if it exists
- if [ ! -z "${apk}" ]; then
+ if [ ! -z "${apk}" ] && [ -f "${apk}" ]; then
# Delete the old backup first
# There is a permissions issue querk when the backup was originall taken in
# recovery mode, but later is taken in android (Permission denied for no

Generated by cgit