We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
process
1 parent 378b5a3 commit d47e89eCopy full SHA for d47e89e
.github/workflows/scripts/test_install
@@ -59,7 +59,7 @@ heartbeat_pid=""
59
working_dir=$(pwd)
60
61
# Get the Node.js major version:
62
-node_major_version=$(node -e 'console.log( require( "process" ).version.substring( 1 ).split( "." )[ 0 ] );' | tr -d '\n' )
+node_major_version=$(node -e 'var proc = ( typeof process !== "undefined" ) ? process : require( "process" ); console.log( proc.version.substring( 1 ).split( "." )[ 0 ] );' | tr -d '\n')
63
64
65
# FUNCTIONS #
0 commit comments