summaryrefslogtreecommitdiff
path: root/bin/installOnWindows.bat
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-08-01 23:37:39 +0200
committerMarcel Klehr <mklehr@gmx.net>2012-08-01 23:37:39 +0200
commit3076ad918056fba7f3eb9a3cc4073af403b1e523 (patch)
tree4b5ec5d25320a74412ee9d489a2c3cad642753e7 /bin/installOnWindows.bat
parent4b59a18f2394c8597ceed42beb079c046854fc7a (diff)
downloadetherpad-lite-3076ad918056fba7f3eb9a3cc4073af403b1e523.zip
Exit on install if node is not installed.
Diffstat (limited to 'bin/installOnWindows.bat')
-rw-r--r--bin/installOnWindows.bat4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/installOnWindows.bat b/bin/installOnWindows.bat
index d16333e0..c46ac034 100644
--- a/bin/installOnWindows.bat
+++ b/bin/installOnWindows.bat
@@ -3,6 +3,10 @@
:: change directory to etherpad-lite root
cd /D "%~dp0\.."
+:: Is node installed?
+cmd /C node -e "" || ( echo "Please install node.js ( http://nodejs.org )" && exit /B 1 )
+
+echo _
echo Checking node version...
set check_version="if(['6','8'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad Lite requires v0.6.x or v0.8.x'); process.exit(1) }"
cmd /C node -e %check_version% || exit /B 1