Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use external
expr
for arithmetic
The external expr command exits with a non-zero exit status, if the expression evaluates to zero. This is in conflict with the -e setting of this script. Bash can do arithmetic by itself with $(( and )) which doesn't have this complexity, so use that instead.
- Loading branch information