Skip to content

Commit 394cae3

Browse files
Update tools/azure_uploader.sh
Co-authored-by: Andrew Lukoshko <[email protected]> Signed-off-by: Kaushik Kumar R M <[email protected]>
1 parent 5b13d72 commit 394cae3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/azure_uploader.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,7 @@ main() {
488488
# convert input image to fixed VHD blob with size rounded to 1 MB
489489
local -r blob_size="$(get_rounded_size "${INPUT_IMAGE}")"
490490
# Get actual image size in bytes
491-
local actual_size
492-
actual_size=$(qemu-img info -f raw --output json "${INPUT_IMAGE}" | jq '.["virtual-size"]')
491+
local -r actual_size="$(qemu-img info -f raw --output json "${INPUT_IMAGE}" | jq '.["virtual-size"]')"
493492

494493
# Only resize if needed
495494
if [ "$actual_size" -ne "$blob_size" ]; then

0 commit comments

Comments
 (0)