mirror of
https://github.com/byReqz/go-etcher.git
synced 2024-11-22 15:01:16 +00:00
fix issue with size warning
This commit is contained in:
parent
36abb0e312
commit
4dfdda9e78
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"), "] Input device/file: " + input, inputmb, inputblock)
|
||||||
fmt.Println("[", color.BlueString("i"), "] Output device/file: " + device, devicemb, targetblock)
|
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.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]: "))
|
fmt.Print(color.HiWhiteString("Do you want to continue? [y/N]: "))
|
||||||
|
Loading…
Reference in New Issue
Block a user