Absolute path for zip extract
							parent
							
								
									bbe32efabb
								
							
						
					
					
						commit
						0ba699f965
					
				|  | @ -613,7 +613,7 @@ class Caching { | ||||||
|                     } |                     } | ||||||
|                     remote_client_logger_1.RemoteClientLogger.log(`cache item exists ${cacheSelection}.zip`); |                     remote_client_logger_1.RemoteClientLogger.log(`cache item exists ${cacheSelection}.zip`); | ||||||
|                     console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`); |                     console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`); | ||||||
|                     yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: path_1.default.basename(destinationFolder) }); |                     yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: path_1.default.join(cacheFolder, path_1.default.basename(destinationFolder)) }); | ||||||
|                     yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${path_1.default.basename(destinationFolder)}/*" "${destinationFolder}/"`); |                     yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${path_1.default.basename(destinationFolder)}/*" "${destinationFolder}/"`); | ||||||
|                 } |                 } | ||||||
|                 else { |                 else { | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -98,7 +98,7 @@ export class Caching { | ||||||
|         } |         } | ||||||
|         RemoteClientLogger.log(`cache item exists ${cacheSelection}.zip`); |         RemoteClientLogger.log(`cache item exists ${cacheSelection}.zip`); | ||||||
|         assert(`${fs.existsSync(destinationFolder)}`); |         assert(`${fs.existsSync(destinationFolder)}`); | ||||||
|         await extract(`${cacheSelection}.zip`, { dir: path.basename(destinationFolder) }); |         await extract(`${cacheSelection}.zip`, { dir: path.join(cacheFolder, path.basename(destinationFolder)) }); | ||||||
|         await CloudRunnerSystem.Run(`mv "${path.basename(destinationFolder)}/*" "${destinationFolder}/"`); |         await CloudRunnerSystem.Run(`mv "${path.basename(destinationFolder)}/*" "${destinationFolder}/"`); | ||||||
|       } else { |       } else { | ||||||
|         RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`); |         RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue