Permalink
Browse files

Check new and old locations for semver

  • Loading branch information...
1 parent 008a98e commit 3c063ebd4f994b34a9e9b9212c9948c7dcceae0d @kruckenb kruckenb committed with isaacs Apr 4, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 scripts/install.sh
View
@@ -72,7 +72,11 @@ cd "$TMP" \
ret=$?
if [ $ret -eq 0 ]; then
req=`$node bin/read-package-json.js package.json engines.node`
- $node node_modules/semver/bin/semver -v "$node_version" -r "$req"
+ if [ -e node_modules ]; then
+ $node node_modules/semver/bin/semver -v "$node_version" -r "$req"
+ else
+ $node bin/semver.js -v "$node_version" -r "$req"
+ fi
ret=$?
fi
if [ $ret -ne 0 ]; then

0 comments on commit 3c063eb

Please sign in to comment.