diff --git a/scripts/set-max-old-space-size.sh b/scripts/set-max-old-space-size.sh index 525c6786418..45ce006e602 100755 --- a/scripts/set-max-old-space-size.sh +++ b/scripts/set-max-old-space-size.sh @@ -5,6 +5,6 @@ export NODE_OPTIONS="${NODE_OPTIONS:-}" -if [[ $NODE_OPTIONS != *"--max-old-space-size"* ]]; then +if [ "$NODE_OPTIONS" != *"--max-old-space-size"* ]; then export NODE_OPTIONS="${NODE_OPTIONS} --max-old-space-size=8192" fi