Avoid using a bashism in script returning CPU count
While ((var++)) works in bash, it results in an error message (and doesn't increment the variable) in dash, so use a POSIX-compatible construction which works for both of them.
This commit is contained in:
parent
0dc13131ed
commit
c29955775a
1 changed files with 1 additions and 2 deletions
|
|
@ -14,5 +14,4 @@ case `uname` in
|
|||
;;
|
||||
esac
|
||||
|
||||
((wxPROC_COUNT++))
|
||||
echo $wxPROC_COUNT
|
||||
echo $((wxPROC_COUNT+1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue