Browse files

[fix] runtime: Fix launch_helper.sh

  • Loading branch information...
1 parent 54698c3 commit a9ac54ca6f7e87437fe152b782667c549fe4cfd9 @BourgerieQuentin BourgerieQuentin committed Apr 11, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 tools/dependencies/launch_helper.sh
View
10 tools/dependencies/launch_helper.sh
@@ -12,11 +12,13 @@
# On Debian, node is now called nodejs. The configure script prefers the latter
# if it exists, as node might be some other program when both exist.
-if which nodejs &>/dev/null; then node=$(which nodejs); else
- if which node &>/dev/null; then node=$(which node); fi; fi
-if [ $? -ne 0 ] || [ ! -x "$node" ]; then
+node=`which nodejs`
+if [ -z "$node" ]; then
+ node=`which node`
+fi
+if [ -z "$node" ] || [ ! -x "$node" ]; then
- NODE_VERSION=v0.8.22
+ NODE_VERSION=v0.10.3
# Detect OS
IS_LINUX=""

0 comments on commit a9ac54c

Please sign in to comment.