From 6da522d5293494f55874e1a3db7b9cfa4d116a71 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 12 Oct 2012 15:19:33 -0400 Subject: Fix restore of multiple archives --- partition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partition.cpp b/partition.cpp index 0644fbae1..f1ce8bd18 100644 --- a/partition.cpp +++ b/partition.cpp @@ -1253,7 +1253,7 @@ bool TWPartition::Restore_Tar(string restore_folder) { Full_FileName = restore_folder + "/" + Backup_FileName + split_index; while (TWFunc::Path_Exists(Full_FileName)) { ui_print("Restoring archive %i...\n", index + 1); - Command = "cd " + Backup_Path + " && tar -xf '" + Full_FileName + "'"; + Command = "tar -xf '" + Full_FileName + "'"; LOGI("Restore command: '%s'\n", Command.c_str()); system(Command.c_str()); index++; -- cgit v1.2.3