From 5809571ca0a7047bb8a1dbc25f2d4b9f7bda239b Mon Sep 17 00:00:00 2001 From: Jeroen Bruijning Date: Fri, 13 Jun 2008 11:34:43 +0200 Subject: [PATCH] Fix bug in shell arithmetic 1. I got a syntax error in ccollect.sh once in a while, i think at rollover. I changed the line j=$((j+1)) to j=$(($j+1)) (twice) and the error went away. --- ccollect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 2856df3..cbef116 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -472,7 +472,7 @@ while [ "${i}" -lt "${no_sources}" ]; do pcmd rm $VVERBOSE -rf "${ddir}/${realincomplete}" || \ _exit_err "Removing ${realincomplete} failed." fi - j=$((j+1)) + j=$(($j+1)) done # @@ -505,7 +505,7 @@ while [ "${i}" -lt "${no_sources}" ]; do _techo "Removing ${to_remove} ..." pcmd rm ${VVERBOSE} -rf "${ddir}/${to_remove}" || \ _exit_err "Removing ${to_remove} failed." - j=$((j+1)) + j=$(($j+1)) done fi