Changeset 29246

Show
Ignore:
Timestamp:
02.09.2014 19:38:29 (5 years ago)
Author:
ak19
Message:

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

Files:
1 modified

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