Basic error missing $ on variable

Bug #1815193 reported by Yann 'Ze' Richard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-utils
Opinion
Undecided
Unassigned

Bug Description

Hi,

The bin/growpart bash script missing a $ before variable name.

Best Regards.

Revision history for this message
Yann 'Ze' Richard (ze) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Hi, thanks for taking the time to report this bug. Sorry its taken woefully long for me to see it.
I'm going to set this as 'opinion'. It is valid shell as it is:

- sector_size=$((disk_size/$sector_num))
+ sector_size=$(($disk_size/$sector_num))

those are essentially equivalent. and if I were going to change it, I would remove the '$' from sector_num rather than adding one to disk_size.

but it *does* work as it is.

Changed in cloud-utils:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.