Skip to content

Commit

Permalink
Added bash version check
Browse files Browse the repository at this point in the history
Issue related to: #547

Signed-off-by: Minghong Xu <Minghong.Xu@ibm.com>
  • Loading branch information
Minghong Xu authored and Minghong Xu committed Jun 20, 2024
1 parent dd67f19 commit badc7ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/openj9/envInfo/MachineInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class MachineInfo {
public static final String[] DOCKER_VERSION_CMD = new String[] {"bash", "-c", "docker --version"};
public static final String[] PODMAN_VERSION_CMD = new String[] {"bash", "-c", "podman --version"};
public static final String[] MAVEN_VERSION_CMD = new String[] {"bash", "-c", "mvn -v"};
public static final String[] BASH_VERSION_CMD = new String[] {"bash", "-c", "bash --version"};


// Console
Expand Down Expand Up @@ -264,6 +265,7 @@ private void getPrerequisiteInfo() {
putInfo(new Info("dockerVersion", DOCKER_VERSION_CMD, ce.execute(DOCKER_VERSION_CMD), null));
putInfo(new Info("podmanVersion", PODMAN_VERSION_CMD, ce.execute(PODMAN_VERSION_CMD), null));
putInfo(new Info("mavenVersion", MAVEN_VERSION_CMD, ce.execute(MAVEN_VERSION_CMD), null));
putInfo(new Info("bashVersion", BASH_VERSION_CMD, ce.execute(BASH_VERSION_CMD), null));
}

private void getSpaceInfo() {
Expand Down

0 comments on commit badc7ef

Please sign in to comment.