Commit fc4d3a46 authored by Efthymia Bika's avatar Efthymia Bika Committed by Giorgos Korfiatis

Remove cygpath call from include/exclude arguments

parent 85485bad
......@@ -78,16 +78,13 @@ function build_extra_args(field_value, type) {
var args = field_value.split(",");
var result = "";
$.each(args, function(i, value) {
value = value.trim();
if(!value) return true;
if(process.platform == 'win32') {
var args = ["-c", "usr/bin/cygpath " + escape_quote_str(value)];
execFile(CYGWIN_BASH, args,
function(error, stdout, stderr) {
toggle_error(error, stderr);
var win_value = String(stdout).replace(/(\r\n|\n|\r)/gm, "");
result += " --" + type + " " + escape_quote_str(win_value) + " ";
});
win_value = value.replace(/\\/g, "/");
result += " --" + type + " " + escape_quote_str(win_value) + " ";
} else {
result += " --" + type + " " + escape_quote_str(value.trim()) + " ";
result += " --" + type + " " + escape_quote_str(value) + " ";
}
});
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment