Fixes issue where etherpad ltie wont install deps because npm is 1.1 alpha-- Bit of a harsh fix but it works fine

This commit is contained in:
John McLear 2011-12-04 15:00:06 +00:00 committed by Peter 'Pita' Martischka
parent 3c8ee3df20
commit 82d54fd70a

View file

@ -28,8 +28,8 @@ hash npm > /dev/null 2>&1 || {
#check npm version #check npm version
NPM_VERSION=$(npm --version) NPM_VERSION=$(npm --version)
if [ ! $(echo $NPM_VERSION | cut -d "." -f 1-2) = "1.0" ]; then if [ ! $(echo $NPM_VERSION | cut -d "." -f 1) = "1" ]; then
echo "You're running a wrong version of npm, you're using $NPM_VERSION, we need 1.0.x" >&2 echo "You're running a wrong version of npm, you're using $NPM_VERSION, we need 1.x" >&2
exit 1 exit 1
fi fi