Skip to content

Commit

Permalink
Merge pull request #49 from 1000ch/master
Browse files Browse the repository at this point in the history
show versions more compactly
  • Loading branch information
hokaccha committed Dec 22, 2015
2 parents 11c439b + 247cd2b commit b2fbd05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nodebrew
Expand Up @@ -205,7 +205,11 @@ sub _cmd_ls_remote {

for (@versions) {
my ($v1, $v2, $v3) = $_ =~ m/v(\d+)\.(\d+)\.(\d+)/;
if (!$tmp{"$v1.$v2"}++) {
if ($v1 == 0 && !$tmp{"$v1.$v2"}++) {
print "\n\n" if $i;
$i = 0;
}
elsif ($v1 != 0 && !$tmp{"$v1"}++) {
print "\n\n" if $i;
$i = 0;
}
Expand Down

0 comments on commit b2fbd05

Please sign in to comment.