We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe7a646 commit 82b833cCopy full SHA for 82b833c
rpi-clone
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
3
-version=2.0.19
+version=2.0.20
4
5
# auto run grub-install if grub detected
6
grub_auto=1
@@ -961,6 +961,11 @@ fi
961
962
dst_partition_table=$(parted -m "/dev/$dst_disk" unit s print | tr -d ';')
963
n_dst_parts=$(echo "$dst_partition_table" | tail -n 1 | cut -d ":" -f 1)
964
+if [ "$n_dst_parts" == "/dev/$dst_disk" ]
965
+then
966
+ n_dst_parts=0
967
+fi
968
+
969
dst_disk_size=$(echo "$dst_partition_table" \
970
| grep "^/dev/$dst_disk" | cut -d ":" -f 2 | tr -d 's')
971
dst_root_dev=/dev/${dst_part_base}${root_part_num}
0 commit comments