From: Todd C. Miller Date: Wed, 9 Nov 2016 13:03:31 +0000 (-0700) Subject: Use expr instead of POSIX sh numerical expression to avoid X-Git-Tag: SUDO_1_8_19^2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbf07431d0aedd4e6cf11eabf4c7098180e6dcdb;p=sudo Use expr instead of POSIX sh numerical expression to avoid a syntax error on older shells. --- diff --git a/mkpkg b/mkpkg index 9f4271d73..f889a0883 100755 --- a/mkpkg +++ b/mkpkg @@ -103,7 +103,7 @@ if make --version 2>&1 | grep GNU >/dev/null; then Linux) if [ -r /proc/cpuinfo ]; then for c in `sed -n 's/^cpu cores[ ]*: *//p' /proc/cpuinfo`; do - NJOBS=$(( $NJOBS + $c )) + NJOBS=`expr $NJOBS + $c` done fi ;;