Skip to content

Commit 405d3ac

Browse files
committed
Build.sh fix refactor setup function to use single bracket syntax for conditional checks
1 parent cbc2cb4 commit 405d3ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
setup() {
2-
local CPUS=1
3-
if [[ "$OS" == "Windows_NT" ]]; then
2+
CPUS=1
3+
if [ "$OS" = "Windows_NT" ]; then
44
CPUS=$(powershell -Command "[Environment]::ProcessorCount")
55
else
6-
if [[ "$(uname -s | tr '[:upper:]' '[:lower:]')" == "darwin" ]]; then
6+
if [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = "darwin" ]; then
77
CPUS=$(sysctl -n hw.ncpu)
88
brew install wabt
99
else

0 commit comments

Comments
 (0)