Fix "Install Recovery Ramdisk" of a file which contains a space in the name

Change-Id: Ib2b1deee7427d9ac565676068b11982171f7a98d
This commit is contained in:
Mauronofrio Matarrese
2019-04-04 22:39:12 +01:00
parent f0a7e59668
commit 82a2f45eb7
+1 -1
View File
@@ -3088,7 +3088,7 @@ bool TWPartitionManager::Prepare_Repack(const std::string& Source_Path, const st
if (TWFunc::copy_file(Source_Path, destination, 0644))
return false;
}
std::string command = "cd " + Temp_Folder_Destination + " && /sbin/magiskboot --unpack -h " + Source_Path;
std::string command = "cd " + Temp_Folder_Destination + " && /sbin/magiskboot --unpack -h '" + Source_Path +"'";
if (TWFunc::Exec_Cmd(command) != 0) {
LOGINFO("Error unpacking %s!\n", Source_Path.c_str());
gui_msg(Msg(msg::kError, "unpack_error=Error unpacking image."));