File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,14 @@ async function configureHelm() {
3535async 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
4948configureHelm ( )
Original file line number Diff line number Diff line change @@ -22,15 +22,14 @@ async function configureHelm() {
2222async 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
3635configureHelm ( )
You can’t perform that action at this time.
0 commit comments