HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen Liang)
This commit is contained in:
parent
287688d6ca
commit
2dbe16c024
|
@ -371,7 +371,7 @@ public abstract class Shell {
|
||||||
String absolutePath = script.getAbsolutePath();
|
String absolutePath = script.getAbsolutePath();
|
||||||
return WINDOWS ?
|
return WINDOWS ?
|
||||||
new String[] {"cmd", "/c", absolutePath }
|
new String[] {"cmd", "/c", absolutePath }
|
||||||
: new String[] {"/bin/bash", bashQuote(absolutePath) };
|
: new String[] {"bash", bashQuote(absolutePath) };
|
||||||
}
|
}
|
||||||
|
|
||||||
/** a Unix command to set permission: {@value}. */
|
/** a Unix command to set permission: {@value}. */
|
||||||
|
|
Loading…
Reference in New Issue