hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [2/2] hadoop git commit: HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen Liang)
Date Mon, 08 Aug 2016 19:36:43 GMT
HADOOP-13457. Remove hardcoded absolute path for shell executable. (Chen Liang)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2dbe16c0
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2dbe16c0
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2dbe16c0

Branch: refs/heads/branch-2
Commit: 2dbe16c0244222607048872dda2fbdd76ef655c9
Parents: 287688d
Author: Arpit Agarwal <arp@apache.org>
Authored: Mon Aug 8 12:29:24 2016 -0700
Committer: Arpit Agarwal <arp@apache.org>
Committed: Mon Aug 8 12:36:30 2016 -0700

----------------------------------------------------------------------
 .../hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2dbe16c0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
index 0311a1e..daeb56e 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
@@ -371,7 +371,7 @@ public abstract class Shell {
     String absolutePath = script.getAbsolutePath();
     return WINDOWS ?
       new String[] {"cmd", "/c", absolutePath }
-      : new String[] {"/bin/bash", bashQuote(absolutePath) };
+      : new String[] {"bash", bashQuote(absolutePath) };
   }
 
   /** a Unix command to set permission: {@value}. */


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message