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

Commit

Permalink
Merge branch 'master' into edaena-svc-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRose authored May 5, 2020
2 parents 26fbd18 + ca1f98f commit f41fa51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ export const isAzCLIInstall = async (): Promise<void> => {
const ver = result
.split("\n")
.find((s) => s.startsWith("azure-cli "))
?.split(/\s+/);
?.replace(/\*$/, "")
.trim()
.split(/\s+/);
// need to remove trailing *, i got
// azure-cli 2.5.0 *
// for the version of az cli that I have
const version = ver && ver.length === 2 ? ver[1] : null;

if (version) {
Expand Down

0 comments on commit f41fa51

Please sign in to comment.