Skip to content

Commit

Permalink
Fixed newer 0.5.x versions
Browse files Browse the repository at this point in the history
the patch level commit I accepted messed this up
  • Loading branch information
tj committed Oct 11, 2011
1 parent 1ec7f75 commit 0ac0914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/n
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ install_node() {

# >= 0.5.x
local minor=$(echo $version | cut -d '.' -f 2)
local patch=$(echo $version | cut -d '.' -f 3)
test $minor = "5" && $patch != 0 && url="http://nodejs.org/dist/v$version/$tarball"
test $minor = "5" && url="http://nodejs.org/dist/v$version/$tarball"

# fetch and unpack
cd $N_PREFIX/n \
Expand Down

1 comment on commit 0ac0914

@rumpl
Copy link
Contributor

@rumpl rumpl commented on 0ac0914 Oct 12, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw your commit, indeed, my patch did mess things up.
The test should have been : test $minor = "5" -a $patch != "0" && url="http://nodejs.org/dist/v$version/$tarball"

So sorry about that...

Please sign in to comment.