1
0
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:
Nils 2022-02-07 13:03:38 +01:00
parent 30afa9ae21
commit 15b7e2f781
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

View File

@ -126,6 +126,7 @@ func PrintAvail() {
targets = append(targets, device.Name())
}
}
fmt.Println("Available devices:")
for _, target := range targets {
sizefile, _ := os.Open("/sys/block/" + target + "/size")
sizeread, _ := io.ReadAll(sizefile)