1
0
mirror of https://github.com/byReqz/go-etcher.git synced 2024-12-25 12:41:49 +00:00

fix issue with size warning

This commit is contained in:
Nils 2022-01-31 22:34:30 +01:00
parent 36abb0e312
commit 4dfdda9e78
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

View File

@ -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]: "))