提交 75b43ed5 编写于 作者: D dty

Fix terminology, get rid of redundant String creation.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23007 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bd27be08
......@@ -73,12 +73,12 @@ public class Shell extends CommandInterpreter {
/**
* Older versions of bash have a bug where non-ASCII on the first line
* makes the shell think the file is a binary file and not a script. Adding
* a leading carriage return works around this problem.
* a leading line feed works around this problem.
*/
private static String addCrForNonASCII(String s) {
if(!s.startsWith("#!")) {
if (s.indexOf('\n')!=0) {
return new String("\n" + s);
return "\n" + s;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册