Skip to content

Commit

Permalink
don't delete ancient version of DATABASES/ autoace
Browse files Browse the repository at this point in the history
  • Loading branch information
gw3 committed Sep 7, 2020
1 parent c22b5c7 commit c2f20b9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions scripts/finish_build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@
#############################################################################
# Step 5: remove very old data from DATABASE directory
#############################################################################
print STDERR "Removing old releases\n";
for(my $ws = $WS_current - 5; $ws >=1 ; $ws--) {
my $old_name = "WS{$ws}";
my $old_path = $wormbase->wormpub . "/DATABASES/$old_name";
if (-d $old_path) {
if ($test) {
print STDERR "TEST: would have deleted $old_path\n";
} else {
$wormbase->run_command("rm -fr $old_path", 'no_log');
}
}
}
#print STDERR "Removing old releases\n";
#for(my $ws = $WS_current - 5; $ws >=1 ; $ws--) {
# my $old_name = "WS{$ws}";
# my $old_path = $wormbase->wormpub . "/DATABASES/$old_name";
# if (-d $old_path) {
# if ($test) {
# print STDERR "TEST: would have deleted $old_path\n";
# } else {
# $wormbase->run_command("rm -fr $old_path", 'no_log');
# }
# }
#}

#############################################################################
# Step 6: zip up files from remaining old directories
Expand Down

0 comments on commit c2f20b9

Please sign in to comment.