mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-30 20:45:50 +00:00 
			
		
		
		
	Update install.sh
This commit is contained in:
		
							parent
							
								
									afd3c867be
								
							
						
					
					
						commit
						c777beb001
					
				
					 1 changed files with 9 additions and 11 deletions
				
			
		|  | @ -70,29 +70,28 @@ startInstall() { | |||
|   fi | ||||
| 
 | ||||
|   if [ -z "$CUSTOM" ]; then | ||||
|     rm -f "$ISO" | ||||
| 
 | ||||
|     BOOT="$ISO" | ||||
|     ISO=$(basename "$ISO") | ||||
|     ISO="$TMP/$ISO" | ||||
| 
 | ||||
|   else | ||||
| 
 | ||||
|     if [ -n "$ORIGINAL" ]; then | ||||
|       rm -f "$ISO" | ||||
|       ISO="$ORIGINAL" | ||||
|       CUSTOM="$ISO" | ||||
|     fi | ||||
|   fi | ||||
| 
 | ||||
|   rm -rf "$TMP" | ||||
|   mkdir -p "$TMP" | ||||
| 
 | ||||
|   if [ -n "$CUSTOM" ]; then | ||||
|     local size | ||||
|     size="$(stat -c%s "$ISO")" | ||||
|     BOOT="$STORAGE/windows.$size.iso" | ||||
|   else | ||||
|     BOOT="$ISO" | ||||
|     ISO=$(basename "$ISO") | ||||
|     ISO="$TMP/$ISO" | ||||
| 
 | ||||
|   fi | ||||
| 
 | ||||
|   rm -f "$BOOT" | ||||
|   rm -rf "$TMP" | ||||
|   mkdir -p "$TMP" | ||||
|   return 0 | ||||
| } | ||||
| 
 | ||||
|  | @ -195,7 +194,6 @@ detectCustom() { | |||
|     CUSTOM="$base" | ||||
|     ORIGINAL="$file" | ||||
|   else | ||||
|     REMOVE="N" | ||||
|     CUSTOM="$file" | ||||
|     rm -f "$base" | ||||
|   fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese