Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
cleanup-bintray: keep the most recent, not delete the most recent
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Apr 9, 2016
1 parent bd29745 commit 12c073e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis/cleanup-bintray.pl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
my $resp = $client->get($apiurl);
die "Getting versions failed: HTTP status $resp->{status} (content: $resp->{content})" unless $resp->{success};
my $decoded = decode_json($resp->{content});
my @versions = sort @{$decoded->{versions}};
my @versions = reverse sort @{$decoded->{versions}};

# Keep the most recent 5 versions.
splice(@versions, 0, 5);
Expand Down

0 comments on commit 12c073e

Please sign in to comment.