mirror of
				https://github.com/byReqz/go-etcher.git
				synced 2025-11-04 00:31:31 +00:00 
			
		
		
		
	fix issue with size warning
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@@ -244,7 +244,7 @@ func main() {
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println("[", color.BlueString("i"), "]  Input device/file: " + input, inputmb, inputblock)
 | 
			
		||||
	fmt.Println("[", color.BlueString("i"), "]  Output device/file: " + device, devicemb, targetblock)
 | 
			
		||||
	if statinput.Size() > statdevice.Size() {
 | 
			
		||||
	if inputsize > targetsize {
 | 
			
		||||
		fmt.Println("[", color.RedString("w"), "]", color.RedString(" Warning:"), "Input file seems to be bigger than the destination!")
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Print(color.HiWhiteString("Do you want to continue? [y/N]: "))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user