1.1 --- a/makesd-format Sat May 25 17:00:03 2019 +0200
1.2 +++ b/makesd-format Sat May 25 17:47:08 2019 +0200
1.3 @@ -18,9 +18,8 @@
1.4
1.5 format()
1.6 {
1.7 - PARTNUM=$1
1.8 + DEVICE=$1
1.9 TYPE=$2
1.10 - DEVICE="${DEV}${PARTNUM}"
1.11
1.12 if [ ! -e "$DEVICE" ] ; then
1.13 echo "$DEVICE does not exist and therefore cannot be formatted." 1>&2
1.14 @@ -49,6 +48,7 @@
1.15 PARTNUM=1
1.16
1.17 while read_fields ; do
1.18 - format "$PARTNUM" "$TYPE"
1.19 + DEVICE="${DEV}${PARTNUM}"
1.20 + format "$DEVICE" "$TYPE"
1.21 PARTNUM=$(($PARTNUM + 1))
1.22 done