Skip to content

Commit 117a4b8

Browse files
committed
fixing for v2
1 parent 18fc42f commit 117a4b8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Tasks/HelmInstallerV0/src/helmtoolinstaller.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ async function configureHelm() {
3535
async function verifyHelm() {
3636
console.log(tl.loc("VerifyHelmInstallation"));
3737
var helmToolPath = tl.which("helm", true);
38-
var helmTool = tl.tool(helmToolPath);
3938

4039
// Check if using Helm 2 or Helm 3
4140
if (helmVersion.startsWith("v2")) {
41+
var helmTool = tl.tool(helmToolPath);
4242
helmTool.arg("init");
4343
helmTool.arg("--client-only");
44+
return helmTool.exec()
4445
}
45-
46-
return helmTool.exec()
4746
}
4847

4948
configureHelm()

Tasks/HelmInstallerV1/src/helmtoolinstaller.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ async function configureHelm() {
2222
async function verifyHelm() {
2323
console.log(tl.loc("VerifyHelmInstallation"));
2424
var helmToolPath = tl.which("helm", true);
25-
var helmTool = tl.tool(helmToolPath);
2625

2726
// Check if using Helm 2 or Helm 3
2827
if (version.startsWith("v2")) {
28+
var helmTool = tl.tool(helmToolPath);
2929
helmTool.arg("init");
3030
helmTool.arg("--client-only");
31+
return helmTool.exec()
3132
}
32-
33-
return helmTool.exec()
3433
}
3534

3635
configureHelm()

0 commit comments

Comments
 (0)