File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ export async function setupBin(
82
82
}
83
83
}
84
84
85
- const installDir = join ( setupDir , extractedFolderName )
86
- const binDir = join ( installDir , binRelativeDir )
85
+ let installDir = join ( setupDir , extractedFolderName )
86
+ let binDir = join ( installDir , binRelativeDir )
87
87
const binFile = join ( binDir , binFileName )
88
88
89
89
// download ane extract the package into the installation directory.
@@ -113,7 +113,11 @@ export async function setupBin(
113
113
114
114
try {
115
115
const downloaded = await downloadTool ( url )
116
- await extractFunction ?.( downloaded , setupDir )
116
+ const extractedBinDir = await extractFunction ?.( downloaded , setupDir )
117
+ if ( typeof extractedBinDir === "string" ) {
118
+ binDir = extractedBinDir
119
+ installDir = extractedBinDir
120
+ }
117
121
} catch ( err ) {
118
122
throw new Error ( `Failed to download ${ name } ${ version } ${ arch } from ${ url } : ${ err } ` )
119
123
}
You can’t perform that action at this time.
0 commit comments