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:
Vadim Zeitlin 2022-12-03 22:27:29 +01:00
parent 0dc13131ed
commit c29955775a

View file

@ -14,5 +14,4 @@ case `uname` in
;;
esac
((wxPROC_COUNT++))
echo $wxPROC_COUNT
echo $((wxPROC_COUNT+1))