@@ -205,18 +205,18 @@ function acquireNodeFromFallbackLocation(version) {
205
205
exeUrl = `https://nodejs.org/dist/v${ version } /win-${ os . arch ( ) } /node.exe` ;
206
206
libUrl = `https://nodejs.org/dist/v${ version } /win-${ os . arch ( ) } /node.lib` ;
207
207
const exePath = yield tc . downloadTool ( exeUrl ) ;
208
- yield io . mv ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
208
+ yield io . cp ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
209
209
const libPath = yield tc . downloadTool ( libUrl ) ;
210
- yield io . mv ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
210
+ yield io . cp ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
211
211
}
212
212
catch ( err ) {
213
213
if ( err instanceof tc . HTTPError && err . httpStatusCode == 404 ) {
214
214
exeUrl = `https://nodejs.org/dist/v${ version } /node.exe` ;
215
215
libUrl = `https://nodejs.org/dist/v${ version } /node.lib` ;
216
216
const exePath = yield tc . downloadTool ( exeUrl ) ;
217
- yield io . mv ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
217
+ yield io . cp ( exePath , path . join ( tempDir , 'node.exe' ) ) ;
218
218
const libPath = yield tc . downloadTool ( libUrl ) ;
219
- yield io . mv ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
219
+ yield io . cp ( libPath , path . join ( tempDir , 'node.lib' ) ) ;
220
220
}
221
221
else {
222
222
throw err ;
0 commit comments