[Paths] Remove unneeded logging in cleanOldVersions
This commit is contained in:
		
							parent
							
								
									f4cfbb21a1
								
							
						
					
					
						commit
						9e5fb88397
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -28,12 +28,8 @@ exports.init = () => {}; // Stub as we setup on require | |||
| 
 | ||||
| exports.cleanOldVersions = () => { | ||||
|   if (!installPath) return; | ||||
|   log('Paths', 'Cleaning old app dirs...'); | ||||
| 
 | ||||
|   for (const x of fs.readdirSync(installPath)) { | ||||
|     if (x.startsWith('app-') && !x.includes(buildInfo.version)) { | ||||
|       log('Paths', 'Removing', x); | ||||
|       fs.rmSync(join(installPath, x), { recursive: true, force: true }); | ||||
|     } | ||||
|     if (x.startsWith('app-') && !x.includes(buildInfo.version)) fs.rmSync(join(installPath, x), { recursive: true, force: true }); | ||||
|   } | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue