diff options
Diffstat (limited to 'src/ob-gencontrol.sh')
-rw-r--r-- | src/ob-gencontrol.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh index 943961b..36f1980 100644 --- a/src/ob-gencontrol.sh +++ b/src/ob-gencontrol.sh @@ -42,7 +42,7 @@ gen_control() cut -d ' ' -f 1)" inst_size=0 for size in ${sizes}; do - inst_size=$(($inst_size + $size)) + inst_size=$((${inst_size} + ${size})) done # Convert bytes to kibibytes and round up. # Note: There is an inconsistency between the Debian Policy Manual and opkg @@ -56,7 +56,7 @@ gen_control() # pkg_size_kbs = (pkg->installed_size + 1023)/1024; # TODO: Further investigate opkg's disk space calculation and, if necessary, # patch opkg and submit a bug report. - inst_size=$((($inst_size + 1023) / 1024)) + inst_size=$(((${inst_size} + 1023) / 1024)) mkdir -p -- "${binary}.control" |