Skip to content

Commit d517210

Browse files
authored
Added NodeJS options in the node exec command (#471)
1 parent 24a0521 commit d517210

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/use_node

+4-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ fi
9797
9898
# If a file path was provided for execution, prefix with OSD_HOME; use relative paths to avoid the need for this.
9999
if [ ! -z "$OSD_USE_NODE_JS_FILE_PATH" ]; then
100-
NODE_OPTIONS="$OSD_NODE_OPTS_PREFIX $OSD_NODE_OPTS $NODE_OPTIONS" exec "${NODE}" "${OSD_HOME}${OSD_USE_NODE_JS_FILE_PATH}" "${@}"
100+
NODE_OPTIONS="$OSD_NODE_OPTS_PREFIX $OSD_NODE_OPTS $NODE_OPTIONS"
101+
exec "${NODE}" ${NODE_OPTIONS} "${OSD_HOME}${OSD_USE_NODE_JS_FILE_PATH}" "${@}"
101102
elif [ $# -ne 0 ]; then
102-
NODE_OPTIONS="$OSD_NODE_OPTS_PREFIX $OSD_NODE_OPTS $NODE_OPTIONS" exec "${NODE}" "${@}"
103+
NODE_OPTIONS="$OSD_NODE_OPTS_PREFIX $OSD_NODE_OPTS $NODE_OPTIONS"
104+
exec "${NODE}" ${NODE_OPTIONS} "${@}"
103105
fi

0 commit comments

Comments
 (0)