mirror of https://github.com/apache/jclouds.git
Issue 126: switch extension bash to sh
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2356 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
3c8a34b674
commit
f463adcf1d
|
@ -186,7 +186,7 @@ public enum ShellToken {
|
||||||
case WINDOWS:
|
case WINDOWS:
|
||||||
return "cmd";
|
return "cmd";
|
||||||
case UNIX:
|
case UNIX:
|
||||||
return "bash";
|
return "sh";
|
||||||
}
|
}
|
||||||
case LIBRARY_PATH_VARIABLE:
|
case LIBRARY_PATH_VARIABLE:
|
||||||
switch (family) {
|
switch (family) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class Statements {
|
||||||
/**
|
/**
|
||||||
* Kills the pid and subprocesses related to the variable {@code FOUND_PID} if set.
|
* Kills the pid and subprocesses related to the variable {@code FOUND_PID} if set.
|
||||||
*
|
*
|
||||||
* @see findPid
|
* @see #findPid
|
||||||
*/
|
*/
|
||||||
public static Statement kill() {
|
public static Statement kill() {
|
||||||
return KILL;
|
return KILL;
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class ShellTokenTest {
|
||||||
|
|
||||||
public void testTokenValueMapUNIX() {
|
public void testTokenValueMapUNIX() {
|
||||||
Map<String, String> expected = new ImmutableMap.Builder<String, String>().put("fs", "/").put(
|
Map<String, String> expected = new ImmutableMap.Builder<String, String>().put("fs", "/").put(
|
||||||
"ps", ":").put("lf", "\n").put("sh", "bash").put("source", ".").put("rem", "#").put(
|
"ps", ":").put("lf", "\n").put("sh", "sh").put("source", ".").put("rem", "#").put(
|
||||||
"args", "$@").put("varl", "$").put("return", "return").put("exit", "exit").put(
|
"args", "$@").put("varl", "$").put("return", "return").put("exit", "exit").put(
|
||||||
"varr", "").put("libraryPathVariable", "LD_LIBRARY_PATH").put("beginScript",
|
"varr", "").put("libraryPathVariable", "LD_LIBRARY_PATH").put("beginScript",
|
||||||
"#!/bin/bash\nset +u\nshopt -s xpg_echo\nshopt -s expand_aliases\n").put(
|
"#!/bin/bash\nset +u\nshopt -s xpg_echo\nshopt -s expand_aliases\n").put(
|
||||||
|
|
Loading…
Reference in New Issue