Changeset 18527 for gsdl


Ignore:
Timestamp:
2009-02-17T13:14:24+13:00 (15 years ago)
Author:
davidb
Message:

Only want to delete index directory if it exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/full-rebuild.pl

    r18510 r18527  
    122122    if ($buildcol_status == 0) {
    123123        my $index_dir = &util::filename_cat($collect_dir,"index");
    124 
    125         print "\n";
    126         print "************************\n";
    127         print "* Removing \"index\"\n";
    128         print "************************\n";
    129 
    130         &util::rm_r($index_dir);
     124       
     125        if (-e $index_dir) {
     126        print "\n";
     127        print "************************\n";
     128        print "* Removing \"index\"\n";
     129        print "************************\n";
     130       
     131        &util::rm_r($index_dir);
     132        }
    131133
    132134        print "\n";
Note: See TracChangeset for help on using the changeset viewer.