Skip to content
Permalink
Browse files

[JENKINS-28790] added valentina condition when the first argument is …

…quoted.

(cherry picked from commit 344e917)
  • Loading branch information
escoem authored and olivergondza committed Feb 11, 2016
1 parent 717c5f5 commit f24c536676fe9df50fd499b51c4b4ff2e6edc40c
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/util/ArgumentListBuilder.java
@@ -342,7 +342,7 @@ else if (percent && escapeVars
percent = (c == '%');
if (quoted) quotedArgs.append(c);
}
if(i == 0) quotedArgs.append('"');
if(i == 0 && quoted) quotedArgs.insert(0, '"'); else if (i == 0 && !quoted) quotedArgs.append('"');
if (quoted) quotedArgs.append('"'); else quotedArgs.append(arg);

windowsCommand.add(quotedArgs, mask.get(i));

0 comments on commit f24c536

Please sign in to comment.
You can’t perform that action at this time.