Ignore:
Timestamp:
2014-09-02T19:38:29+12:00 (10 years ago)
Author:
ak19
Message:

Fixed an error regarding when the fallback collectdir needs to be set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/exportcol.pl

    r27758 r29246  
    104104    my $xml = 0;
    105105    my $gli = 0;
    106     # the default/fallback for collect directory if none is provided
    107     # (no -collectdir option given) is the standard Greenstone collect directory
    108     my $collectdir = &FileUtils::filenameConcatenate ($ENV{'GSDLHOME'}, "collect");
     106    my $collectdir;
    109107
    110108    my $hashParsingResult = {};
     
    123121    {
    124122    eval "\$$strVariable = \$hashParsingResult->{\"\$strVariable\"}";
     123    }
     124
     125    # the default/fallback for collect directory if none is provided
     126    # (no -collectdir option given) is the standard Greenstone collect directory
     127    if(!$collectdir) {
     128    $collectdir = &FileUtils::filenameConcatenate ($ENV{'GSDLHOME'}, "collect");
    125129    }
    126130   
Note: See TracChangeset for help on using the changeset viewer.