Skip to content

Commit

Permalink
fixup! Refactor cmdline.txt with more variables
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijskooijman committed May 15, 2022
1 parent 4ac8fad commit 628e542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpi-clone
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ then
if grep -q "$src_disk_ID" "${clone}${cmdline_txt}"
then
qecho "Editing $cmdline_txt PARTUUID to use $dst_disk_ID"
sed -i "s/${src_disk_ID}/${dst_disk_ID}/" "$cmdline_txt"
sed -i "s/${src_disk_ID}/${dst_disk_ID}/" "${clone}${cmdline_txt}"
elif [ "${src_fsuuid[root_part_num]}" != "" ] && grep -q "${src_fsuuid[root_part_num]}" "${clone}${cmdline_txt}"
then
new_fsuuid=${dst_fsuuid[root_part_num]}
Expand Down

0 comments on commit 628e542

Please sign in to comment.