diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-10 19:33:12 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-10 19:33:12 (EDT) |
commit | e71a53a49d80ba3cc72e678a00f50c2b5b7ca47e (patch) | |
tree | eebad885711685d2661b90f28d90822a6c060376 /src/db.sh | |
parent | ed4542dd2bef766426a40a5d9fd4d86c86a79c18 (diff) |
Add braces to param exps in arith substs
Diffstat (limited to 'src/db.sh')
-rw-r--r-- | src/db.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -252,7 +252,7 @@ db_inc_references() dir="${dir}/${binver}_${arch}_${plat}" if [ -f "${dir}/references" ]; then refs="$(cat "${dir}/references")" - refs=$(($refs + 1)) + refs=$((${refs} + 1)) else refs=1 mkdir -p "${dir}" @@ -276,7 +276,7 @@ db_dec_references() dir="${dir}/${binver}_${arch}_${plat}" if [ -f "${dir}/references" ]; then refs="$(cat "${dir}/references")" - refs=$(($refs - 1)) + refs=$((${refs} - 1)) else refs=0 fi |