mirror of
https://github.com/byReqz/go-etcher.git
synced 2024-11-22 06:51:15 +00:00
make force flag actually do something
This commit is contained in:
parent
e9ac06c8cf
commit
30afa9ae21
3
main.go
3
main.go
@ -239,6 +239,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 force == false {
|
||||
if inputsize > targetsize {
|
||||
fmt.Println("[", color.RedString("w"), "]", color.RedString(" Warning:"), "Input file seems to be bigger than the destination!")
|
||||
}
|
||||
@ -249,7 +250,7 @@ func main() {
|
||||
if ! (yesno == "y" || yesno == "Y") {
|
||||
log.Fatal("aborted")
|
||||
}
|
||||
|
||||
}
|
||||
written, err := WriteImage(image, target, inputsize)
|
||||
if err != nil {
|
||||
fmt.Println("\r[", color.RedString("✘"), "] Writing image,", written, "bytes written ")
|
||||
|
Loading…
Reference in New Issue
Block a user