From c29955775a7cbf87280fef60fb106ace2b7d0bb9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 3 Dec 2022 22:27:29 +0100 Subject: [PATCH] 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. --- build/tools/proc_count.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/tools/proc_count.sh b/build/tools/proc_count.sh index 7b10dbe0ac..65109b41dd 100755 --- a/build/tools/proc_count.sh +++ b/build/tools/proc_count.sh @@ -14,5 +14,4 @@ case `uname` in ;; esac -((wxPROC_COUNT++)) -echo $wxPROC_COUNT +echo $((wxPROC_COUNT+1))