mirror of https://github.com/nodejs/node.git
win,nodevars: run iojs.exe to get node version
PR-URL: https://github.com/iojs/io.js/pull/263 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>pull/263/head
parent
0430215dea
commit
156cd82ef4
|
@ -7,7 +7,7 @@ setlocal enabledelayedexpansion
|
||||||
pushd "%~dp0"
|
pushd "%~dp0"
|
||||||
|
|
||||||
rem Figure out the node version.
|
rem Figure out the node version.
|
||||||
set print_version=.\node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
|
set print_version=.\iojs.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
|
||||||
for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
|
for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
|
||||||
|
|
||||||
rem Print message.
|
rem Print message.
|
||||||
|
|
Loading…
Reference in New Issue