summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/changelog.sh2
-rw-r--r--lib/control.sh4
-rw-r--r--lib/deps.sh4
-rw-r--r--lib/metadata.sh2
-rw-r--r--lib/package.sh2
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index e7c3f7c..4432850 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -81,7 +81,7 @@ ob_parse_changelog()
expect='first_heading'
while IFS='' read line; do
- line_nr=$(($line_nr + 1))
+ line_nr=$((${line_nr} + 1))
case "${line}" in
'')
if [ x"${expect}" = x'start_changes' ]; then
diff --git a/lib/control.sh b/lib/control.sh
index e43a69e..58827ea 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -90,7 +90,7 @@ ob_parse_control()
line_nr=0
while IFS='' read -r line; do
- line_nr=$(($line_nr + 1))
+ line_nr=$((${line_nr} + 1))
case "${line}" in
'')
_ob_parse_control_error "${file}" "${line_nr}" \
@@ -273,7 +273,7 @@ ob_substvars()
)"
value="$(eval "printf '%s' \"\${_OB_SUBSTVAR_${name}}\"")"
string="${lhs}${value}${rhs}"
- depth=$(($depth + 1))
+ depth=$((${depth} + 1))
done
printf '%s\n' "${string}"
diff --git a/lib/deps.sh b/lib/deps.sh
index d175d44..649cfe0 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -124,7 +124,7 @@ ob_parse_dep()
;;
esac
done
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
dep="${1}"
shift 1 || _ob_abort
@@ -232,7 +232,7 @@ ob_reduce_deps()
;;
esac
done
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
local deps="${1}"
shift 1 || _ob_abort
diff --git a/lib/metadata.sh b/lib/metadata.sh
index 50db700..e3ed407 100644
--- a/lib/metadata.sh
+++ b/lib/metadata.sh
@@ -107,7 +107,7 @@ ob_parse_version()
;;
esac
done
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
version="${1}"
shift 1 || _ob_abort
diff --git a/lib/package.sh b/lib/package.sh
index b4a0d97..0c39ca4 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -108,7 +108,7 @@ ob_get_binary_packages()
;;
esac
done
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
if ! ${_ob_got_binary_packages}; then