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:
parent
d5a93fda41
commit
be575a0160
@ -485,8 +485,8 @@ void XmlResApp::MakePackageZIP(const wxArrayString& flist)
|
||||
wxString cwd = wxGetCwd();
|
||||
wxSetWorkingDirectory(parOutputPath);
|
||||
int execres = wxExecute(_T("zip -9 -j ") +
|
||||
wxString(flagVerbose ? _T("") : _T("-q ")) +
|
||||
parOutput + _T(" ") + files, true);
|
||||
wxString(flagVerbose ? _T("\"") : _T("-q \"")) +
|
||||
parOutput + _T("\" ") + files, true);
|
||||
wxSetWorkingDirectory(cwd);
|
||||
if (execres == -1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user