Skip to content

Commit d47e89e

Browse files
committed
Address Node.js v0.10.x and v0.12.x failures as unable to require process module
1 parent 378b5a3 commit d47e89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/test_install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ heartbeat_pid=""
5959
working_dir=$(pwd)
6060

6161
# Get the Node.js major version:
62-
node_major_version=$(node -e 'console.log( require( "process" ).version.substring( 1 ).split( "." )[ 0 ] );' | tr -d '\n' )
62+
node_major_version=$(node -e 'var proc = ( typeof process !== "undefined" ) ? process : require( "process" ); console.log( proc.version.substring( 1 ).split( "." )[ 0 ] );' | tr -d '\n')
6363

6464

6565
# FUNCTIONS #

0 commit comments

Comments
 (0)