summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-09-30 00:52:57 +0200
committerGravatar Nikias Bassen2019-09-30 00:52:57 +0200
commitd323e9ccdf3919de51513d291982d3c002528f0f (patch)
tree6401fdddc66bb59cb71e1835c2eb473ea7cd5139
parent60823f9eeb3f09cd8083f613522d01e21d2f6d2d (diff)
downloadlibimobiledevice-d323e9ccdf3919de51513d291982d3c002528f0f.tar.gz
libimobiledevice-d323e9ccdf3919de51513d291982d3c002528f0f.tar.bz2
idevicebackup2: Only print device reboot message if restore was successful
-rw-r--r--tools/idevicebackup2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index 3a4de67..10fad81 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1409,7 +1409,7 @@ static void print_usage(int argc, char **argv)
1409 printf(" --full\t\tforce full backup from device.\n"); 1409 printf(" --full\t\tforce full backup from device.\n");
1410 printf(" restore\trestore last backup to the device\n"); 1410 printf(" restore\trestore last backup to the device\n");
1411 printf(" --system\t\trestore system files, too.\n"); 1411 printf(" --system\t\trestore system files, too.\n");
1412 printf(" --no-reboot\t\tdo NOT reboot the system when done (default: yes).\n"); 1412 printf(" --no-reboot\t\tdo NOT reboot the device when done (default: yes).\n");
1413 printf(" --copy\t\tcreate a copy of backup folder before restoring.\n"); 1413 printf(" --copy\t\tcreate a copy of backup folder before restoring.\n");
1414 printf(" --settings\t\trestore device settings from the backup.\n"); 1414 printf(" --settings\t\trestore device settings from the backup.\n");
1415 printf(" --remove\t\tremove items which are not being restored\n"); 1415 printf(" --remove\t\tremove items which are not being restored\n");
@@ -2499,9 +2499,9 @@ files_out:
2499 } 2499 }
2500 break; 2500 break;
2501 case CMD_RESTORE: 2501 case CMD_RESTORE:
2502 if ((cmd_flags & CMD_FLAG_RESTORE_NO_REBOOT) == 0)
2503 PRINT_VERBOSE(1, "The device should reboot now.\n");
2504 if (operation_ok) { 2502 if (operation_ok) {
2503 if ((cmd_flags & CMD_FLAG_RESTORE_NO_REBOOT) == 0)
2504 PRINT_VERBOSE(1, "The device should reboot now.\n");
2505 PRINT_VERBOSE(1, "Restore Successful.\n"); 2505 PRINT_VERBOSE(1, "Restore Successful.\n");
2506 } else { 2506 } else {
2507 PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); 2507 PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code);