Fixing android alert

Alert message was being used even when the backup/restore was not
completed succesfully. Fixed it using the && operator.
This commit is contained in:
Bruno F. Fontes 2019-04-12 18:59:49 -03:00
parent 85a8a60b74
commit f06d59da1f
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
2 changed files with 2 additions and 4 deletions

View File

@ -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"

View File

@ -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"