Use expr instead of POSIX sh numerical expression to avoid
a syntax error on older shells.
This commit is contained in:
2
mkpkg
2
mkpkg
@@ -103,7 +103,7 @@ if make --version 2>&1 | grep GNU >/dev/null; then
|
|||||||
Linux)
|
Linux)
|
||||||
if [ -r /proc/cpuinfo ]; then
|
if [ -r /proc/cpuinfo ]; then
|
||||||
for c in `sed -n 's/^cpu cores[ ]*: *//p' /proc/cpuinfo`; do
|
for c in `sed -n 's/^cpu cores[ ]*: *//p' /proc/cpuinfo`; do
|
||||||
NJOBS=$(( $NJOBS + $c ))
|
NJOBS=`expr $NJOBS + $c`
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user