diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-16 16:34:44 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-16 16:34:44 (EDT) |
commit | 5994d6a559c475c6ee034c9c4fca705291b7c716 (patch) | |
tree | f43cc0ea3721c0d2d9ab426c75609d177d2101fa /src | |
parent | 36c39564862e4aedb54dd95e650d0333911fb926 (diff) |
Add braces to param exps in arith substs
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-gencontrol.sh | 4 | ||||
-rw-r--r-- | src/opkbuild.sh | 2 |
2 files changed, 3 insertions, 3 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" diff --git a/src/opkbuild.sh b/src/opkbuild.sh index af7ce1c..43e338d 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -381,7 +381,7 @@ main() fi get_options "${@}" || return 1 - shift $(($OPTIND - 1)) + shift $((${OPTIND} - 1)) if [ ${#} -ne 0 ]; then usage return 1 |