### OBS/NB: all sizes in gigabytes. ###
<snip>
for s in ${!size*}; do ((tSize+=$s)); done # note: Bash math ignores the R.
Probably should mention that —as written —these scripts only handle
integers for gigabyte values. The basic
$(( 2 + 2 )) syntax will refuse floating point numbers like 4.56 + 7.89 (yet
diskutil would happily accommodate same).
So either change the code which calculates the total, or remember to only use integer values. Perhaps edit that one line to read:
### OBS/NB: all sizes in "whole number" gigabytes (i.e., integers only). ###