Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-28790] added valentina condition when the first argument is …
…quoted.

(cherry picked from commit 344e917)
  • Loading branch information
escoem authored and olivergondza committed Mar 30, 2016
1 parent 717c5f5 commit f24c536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/util/ArgumentListBuilder.java
Expand Up @@ -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));
Expand Down

0 comments on commit f24c536

Please sign in to comment.