forked from ungleich-public/ccollect
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.
This commit is contained in:
parent
40cef5f7a4
commit
5809571ca0
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
pcmd rm $VVERBOSE -rf "${ddir}/${realincomplete}" || \
|
pcmd rm $VVERBOSE -rf "${ddir}/${realincomplete}" || \
|
||||||
_exit_err "Removing ${realincomplete} failed."
|
_exit_err "Removing ${realincomplete} failed."
|
||||||
fi
|
fi
|
||||||
j=$((j+1))
|
j=$(($j+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -505,7 +505,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
_techo "Removing ${to_remove} ..."
|
_techo "Removing ${to_remove} ..."
|
||||||
pcmd rm ${VVERBOSE} -rf "${ddir}/${to_remove}" || \
|
pcmd rm ${VVERBOSE} -rf "${ddir}/${to_remove}" || \
|
||||||
_exit_err "Removing ${to_remove} failed."
|
_exit_err "Removing ${to_remove} failed."
|
||||||
j=$((j+1))
|
j=$(($j+1))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue