summaryrefslogtreecommitdiff
path: root/andbackup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'andbackup.sh')
-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