Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fix: update GCloud detection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-wise committed Feb 23, 2021
1 parent 09fac9d commit a07d0a5
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -275,13 +275,8 @@ public Process getProcess() {
}

private boolean isGcloudInstalled() {
Map<String, String> env = System.getenv();
for (String envName : env.keySet()) {
if ("PATH".equals(envName)) {
return env.get(envName).contains("google-cloud-sdk");
}
}
return false;
String path = System.getenv("PATH");
return path != null && path.contains("google-cloud-sdk");
}

private boolean isEmulatorUpToDate() throws IOException, InterruptedException {
Expand Down

0 comments on commit a07d0a5

Please sign in to comment.