Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
thorko committed Sep 25, 2017
1 parent 6f84e1b commit ff93eda
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/Buildctl/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ sub list_versions {
if ( ! -d "$config->{'install_path'}/$_" ) {
print "$config->{'install_path'}/$_ does not exist.\n";
} else {
my $active = readlink("$config->{'install_path'}/$_/current");
$active =~ s{.*/}{};
my $active = readlink("$config->{'install_path'}/$_/current");
$active =~ s{.*/}{};
my @v = glob "$config->{'install_path'}/$_/[0-9].*";
printf("%-20s", "$_:");
foreach (@v) {
Expand All @@ -103,9 +103,8 @@ sub list_versions {
}
}
} else {
my $active = readlink("$config->{'install_path'}/$app/current");
$active =~ s{.*/}{};
print "$app: $v\n" if ($v =~ /^\d+/);
my $active = readlink("$config->{'install_path'}/$app/current");
$active =~ s{.*/}{};
$logger->debug("list version of $app");
my @v = glob "$config->{'install_path'}/$app/[0-9].*";
printf("%-20s", "$app:");
Expand Down

0 comments on commit ff93eda

Please sign in to comment.