mirror of
https://github.com/byReqz/go-etcher.git
synced 2024-11-22 06:51:15 +00:00
add headline to device overview
This commit is contained in:
parent
30afa9ae21
commit
15b7e2f781
1
main.go
1
main.go
@ -126,6 +126,7 @@ func PrintAvail() {
|
|||||||
targets = append(targets, device.Name())
|
targets = append(targets, device.Name())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fmt.Println("Available devices:")
|
||||||
for _, target := range targets {
|
for _, target := range targets {
|
||||||
sizefile, _ := os.Open("/sys/block/" + target + "/size")
|
sizefile, _ := os.Open("/sys/block/" + target + "/size")
|
||||||
sizeread, _ := io.ReadAll(sizefile)
|
sizeread, _ := io.ReadAll(sizefile)
|
||||||
|
Loading…
Reference in New Issue
Block a user