enclose zip arguments in quotes, fixes behaviour for paths which contain spaces (fixed patch 1092970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -485,8 +485,8 @@ void XmlResApp::MakePackageZIP(const wxArrayString& flist)
|
|||||||
wxString cwd = wxGetCwd();
|
wxString cwd = wxGetCwd();
|
||||||
wxSetWorkingDirectory(parOutputPath);
|
wxSetWorkingDirectory(parOutputPath);
|
||||||
int execres = wxExecute(_T("zip -9 -j ") +
|
int execres = wxExecute(_T("zip -9 -j ") +
|
||||||
wxString(flagVerbose ? _T("") : _T("-q ")) +
|
wxString(flagVerbose ? _T("\"") : _T("-q \"")) +
|
||||||
parOutput + _T(" ") + files, true);
|
parOutput + _T("\" ") + files, true);
|
||||||
wxSetWorkingDirectory(cwd);
|
wxSetWorkingDirectory(cwd);
|
||||||
if (execres == -1)
|
if (execres == -1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user