summaryrefslogtreecommitdiffstats
path: root/src/db.sh
diff options
context:
space:
mode:
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