Skip to content

Commit

Permalink
address codacy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Jun 30, 2024
1 parent 1064fcd commit 93f86ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanup_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if [[ -d "${mount}" ]]; then
if [[ "${part_type}" == "gpt" ]]; then
# for GPT partition table, leave space at the end for the secondary GPT
# it requires 33 sectors, which is 16896 bytes
image_size=$((${image_size} + 16896))
image_size=$((image_size + 16896))
fi
echo "Shrinking image from ${initial_image_size} to ${image_size} bytes."
truncate -s "${image_size}" "${image}"
Expand Down

0 comments on commit 93f86ee

Please sign in to comment.