nvm sync - fix the distribution path of >v0.5.0

This commit is contained in:
appajee 2011-08-06 19:12:47 -07:00
parent c10ca74b5b
commit 7cbff22d1d

3
nvm.sh
View File

@ -223,6 +223,9 @@ nvm()
for VER in `curl -s http://nodejs.org/dist/ -o - | grep 'node-v.*\.tar\.gz' | sed -e 's/.*node-//' -e 's/\.tar\.gz.*//'`; do for VER in `curl -s http://nodejs.org/dist/ -o - | grep 'node-v.*\.tar\.gz' | sed -e 's/.*node-//' -e 's/\.tar\.gz.*//'`; do
touch $VER touch $VER
done done
for VER in `curl -s http://nodejs.org/dist/ -o - | grep 'v0.[0-9]\{1,2\}\.[0-9]\{1,2\}/' | sed -e 's/.*v0./v0./' | sed -e 's/\/.*//'`; do
touch $VER
done
echo " done." echo " done."
) )
[ "$STABLE" = `nvm_version stable` ] || echo "NEW stable: `nvm_version stable`" [ "$STABLE" = `nvm_version stable` ] || echo "NEW stable: `nvm_version stable`"