billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.52k stars 331 forks source link

error on disk label with numbers inside of string #62

Open joedeveloper opened 6 years ago

joedeveloper commented 6 years ago

https://github.com/billw2/rpi-clone/blob/82b833c7a44c1ec64716120096cd740c699f211f/rpi-clone#L479

=> mkfs -t ext4 /dev/sda5 ... ./rpi-clone: line 479: printf: `32': not a valid identifier => mkfs -t vfat /dev/sda6 ... => mkfs -t ext4 -L ggpi32gb /dev/sda7 ...

unexpected error message, I have been using numbers to reflect storage capacity for ages.

Thanks for this tool btw!

small suggestion, include a flag that will list eligible clone destinations.