We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3658269 commit f423762Copy full SHA for f423762
scripts/set-max-old-space-size.sh
@@ -1,10 +1,10 @@
1
-#!/usr/bin/env bash
+#!/usr/bin/env sh
2
3
# This script sets the node `--max-old-space-size` to 8192 if it is not set already.
4
# All existing `NODE_OPTIONS` are retained as is.
5
6
export NODE_OPTIONS="${NODE_OPTIONS:-}"
7
8
-if [[ $NODE_OPTIONS != *"--max-old-space-size"* ]]; then
+if [ "${NODE_OPTIONS##*--max-old-space-size*}" = "$NODE_OPTIONS" ]; then
9
export NODE_OPTIONS="${NODE_OPTIONS} --max-old-space-size=8192"
10
fi
0 commit comments