mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-30 20:45:50 +00:00 
			
		
		
		
	feat: Refactor download code
This commit is contained in:
		
							parent
							
								
									999d57084c
								
							
						
					
					
						commit
						558ab47cea
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		|  | @ -209,17 +209,6 @@ detectCustom() { | |||
|   return 0 | ||||
| } | ||||
| 
 | ||||
| removeDownload() { | ||||
| 
 | ||||
|   local iso="$1" | ||||
| 
 | ||||
|   [ ! -f "$iso" ] && return 0 | ||||
|   [ -n "$CUSTOM" ] && return 0 | ||||
|   ! rm -f "$iso" 2> /dev/null && warn "failed to remove $iso !" | ||||
| 
 | ||||
|   return 0 | ||||
| } | ||||
| 
 | ||||
| extractESD() { | ||||
| 
 | ||||
|   local iso="$1" | ||||
|  | @ -684,6 +673,17 @@ updateImage() { | |||
|   return 0 | ||||
| } | ||||
| 
 | ||||
| removeDownload() { | ||||
| 
 | ||||
|   local iso="$1" | ||||
| 
 | ||||
|   [ ! -f "$iso" ] && return 0 | ||||
|   [ -n "$CUSTOM" ] && return 0 | ||||
|   ! rm -f "$iso" 2> /dev/null && warn "failed to remove $iso !" | ||||
| 
 | ||||
|   return 0 | ||||
| } | ||||
| 
 | ||||
| copyOEM() { | ||||
| 
 | ||||
|   local dir="$1" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese