Skip to content

Commit

Permalink
Merge pull request #28 from framps/issue27
Browse files Browse the repository at this point in the history
Fixed issue #27 (spaces in label)
  • Loading branch information
geerlingguy authored Jul 24, 2024
2 parents 5ecaa7a + d4dcecf commit c417208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpi-clone
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ Use -U for unattended even if initializing.
then
ext_label $p "$fs_type" "-L" label
printf " => mkfs -t $mkfs_type $label $dst_dev ..."
yes | mkfs -t $mkfs_type $label $dst_dev &>> /tmp/$PGM-output
yes | mkfs -t $mkfs_type "$label" "$dst_dev" &>> /tmp/$PGM-output
echo ""
else
if [ "$fs_type" == "swap" ]
Expand All @@ -1529,7 +1529,7 @@ Use -U for unattended even if initializing.
then
ext_label $p $fs_type "-L" label
printf " => mkfs -t $mkfs_type $label $dst_dev ..."
yes | mkfs -t $mkfs_type $label $dst_dev &>> /tmp/$PGM-output
yes | mkfs -t $mkfs_type "$label" "$dst_dev" &>> /tmp/$PGM-output
echo ""
if ((p == n_image_parts))
then
Expand Down Expand Up @@ -1680,7 +1680,7 @@ do
if [ "$label" != "" ]
then
qecho " e2label $dst_dev $label"
e2label $dst_dev $label
e2label $dst_dev "$label"
fi

mount_partition ${src_device[p]} $clone_src ""
Expand Down Expand Up @@ -1726,7 +1726,7 @@ do
if [ "$label" != "" ]
then
qecho " e2label $dst_dev $label"
e2label $dst_dev $label
e2label $dst_dev "$label"
fi

mount_partition "$dst_dev" "$dst_dir" "$unmount_list"
Expand Down

0 comments on commit c417208

Please sign in to comment.