Skip to content

Commit

Permalink
Don't convert partuuids for empty src_partition
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkollasch committed Oct 23, 2022
1 parent 07f536e commit f30d539
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpi-clone
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,10 @@ then
count=0
for ((p = 1; p <= n_src_parts; p++))
do
if [[ -z "${src_partition[p]}" ]]
then
continue
fi
if grep -q "^/dev/${src_partition[p]}" $fstab_tmp
then
partuuid=$(lsblk -n -o PARTUUID /dev/${src_partition[p]})
Expand Down

0 comments on commit f30d539

Please sign in to comment.