Skip to content

Commit f30d539

Browse files
committed
Don't convert partuuids for empty src_partition
1 parent 07f536e commit f30d539

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rpi-clone

+4
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@ then
957957
count=0
958958
for ((p = 1; p <= n_src_parts; p++))
959959
do
960+
if [[ -z "${src_partition[p]}" ]]
961+
then
962+
continue
963+
fi
960964
if grep -q "^/dev/${src_partition[p]}" $fstab_tmp
961965
then
962966
partuuid=$(lsblk -n -o PARTUUID /dev/${src_partition[p]})

0 commit comments

Comments
 (0)