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 /lib/control.sh | |
parent | 36c39564862e4aedb54dd95e650d0333911fb926 (diff) |
Add braces to param exps in arith substs
Diffstat (limited to 'lib/control.sh')
-rw-r--r-- | lib/control.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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}" |