dolorosus / RaspiBackup

Backup your raspi
GNU General Public License v3.0
13 stars 4 forks source link

fixed loopbak names and source partition names routine #7

Closed ephestione closed 5 years ago

ephestione commented 5 years ago

Loopback devices names are always like /dev/loopN and for those the partition names are always defined with the addition of pN, so following the partition naming convention of the source devices led to wrong results when it was different from /dev/mmcblk0 The case switch routine for source device partition names had the asterisk inside the quotes, and that's why it always resulted in "p" (by the default definition), with asterisk outside quotes it works as intended.