summaryrefslogtreecommitdiffstats
path: root/src/db.sh
diff options
context:
space:
mode:
authorPatrick 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)
commite71a53a49d80ba3cc72e678a00f50c2b5b7ca47e (patch)
treeeebad885711685d2661b90f28d90822a6c060376 /src/db.sh
parented4542dd2bef766426a40a5d9fd4d86c86a79c18 (diff)
Add braces to param exps in arith substs
Diffstat (limited to 'src/db.sh')
-rw-r--r--src/db.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.sh b/src/db.sh
index 15c8685..a18b76d 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -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