From c71a4e73dc0ca6400f5c974411607c21717399b0 Mon Sep 17 00:00:00 2001 From: tihmstar Date: Sun, 3 Nov 2019 15:32:58 +0100 Subject: [PATCH] fixed done message --- futurerestore/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/futurerestore/main.cpp b/futurerestore/main.cpp index 287c94e3..8aa043b6 100644 --- a/futurerestore/main.cpp +++ b/futurerestore/main.cpp @@ -79,7 +79,6 @@ using namespace std; using namespace tihmstar; int main_r(int argc, const char * argv[]) { int err=0; - int res = -1; printf("Version: " VERSION_COMMIT_SHA " - " VERSION_COMMIT_COUNT "\n"); #ifdef HAVE_LIBIPATCHER printf("%s\n",libipatcher::version().c_str()); @@ -271,14 +270,16 @@ int main_r(int argc, const char * argv[]) { client.doJustBoot(ipsw,bootargs); else client.doRestore(ipsw); + printf("Done: restoring succeeded!\n"); } catch (tihmstar::exception &e) { e.dump(); + printf("Done: restoring failed!\n"); } - cout << "Done: restoring "<< (!res ? "succeeded" : "failed")<<"." <