1
0
mirror of https://github.com/byReqz/go-etcher.git synced 2025-06-14 19:57:48 +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

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)