From f06d59da1f327971e5d5afb88f907fa11a184e96 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 12 Apr 2019 18:59:49 -0300 Subject: [PATCH] Fixing android alert Alert message was being used even when the backup/restore was not completed succesfully. Fixed it using the && operator. --- Android/android-backup.sh | 3 +-- Android/android_recover.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Android/android-backup.sh b/Android/android-backup.sh index dc1d047..485aa8d 100755 --- a/Android/android-backup.sh +++ b/Android/android-backup.sh @@ -1,2 +1 @@ -adb backup -apk -shared -all -f /home/bruno/Documents/Dropbox/Backups/android_backup.ab -kdialog --title "Android Backup Complete" --msgbox "Android Backup finished successfully" +adb backup -apk -shared -all -f /home/bruno/Documents/Dropbox/Backups/android_backup.ab && kdialog --title "Android Backup Complete" --msgbox "Android Backup finished successfully" diff --git a/Android/android_recover.sh b/Android/android_recover.sh index 15574e6..ebbbf99 100755 --- a/Android/android_recover.sh +++ b/Android/android_recover.sh @@ -1,2 +1 @@ -adb restore /home/bruno/Documents/Dropbox/Backups/android_backup.ab -kdialog --title "Android Restore Complete" --msgbox "Android Restore finished successfully" +adb restore /home/bruno/Documents/Dropbox/Backups/android_backup.ab && kdialog --title "Android Restore Complete" --msgbox "Android Restore finished successfully"