Skip to content

Commit

Permalink
Merge pull request #574 from sophiaxu0424/bash
Browse files Browse the repository at this point in the history
Added bash version check
  • Loading branch information
smlambert committed Jun 21, 2024
2 parents dd67f19 + badc7ef commit 9acd936
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 9acd936

Please sign in to comment.