Skip to content
Snippets Groups Projects
Commit b1968555 authored by echicken's avatar echicken
Browse files

Quote zipfile and destination dir names - Windows-friendly.

parent 58f19344
Branches
Tags
No related merge requests found
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
if(typeof ext != "undefined" && ext.toLowerCase() == ".zip") { if(typeof ext != "undefined" && ext.toLowerCase() == ".zip") {
var destDir = file.replace(ext, ""); var destDir = file.replace(ext, "");
if(!file_isdir(destDir)) if(!file_isdir(destDir))
system.exec(system.exec_dir + "unzip -o -qq '" + file + "' -d '" + destDir + "'"); system.exec(system.exec_dir + 'unzip -o -qq "' + file + '" -d "' + destDir + '"');
if(file_isdir(destDir)) if(file_isdir(destDir))
this.path = destDir; this.path = destDir;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment