Changeset 599


Ignore:
Timestamp:
03/27/12 16:01:23 (12 years ago)
Author:
aclsce
Message:

Fixed 2 small bugs on the name of restart pack :

  • use of basename instead of full path
  • a pack restart has the restart called with the 2nd date of its name

( $2 >= restartdate ) instead of ( $2 > restartdate )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r590 r599  
    751751            if [ X${IsMatching} = X ] ; then 
    752752              for PotentialTarFile in $( find ${R_SAVE}/RESTART -name "${config_UserChoices_JobName}_*_restart.tar" ) ; do 
    753                 IsMatching=$( echo ${PotentialTarFile} | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 > restartdate)) {print $1"_"$2}}' ) 
     753                IsMatching=$( echo $( basename ${PotentialTarFile} ) | sed "s:^${config_UserChoices_JobName}_::" | sed "s:\.restart\.tar$::" | gawk -F_ -v restartdate=${LastPeriodDateEnd} '{if (($1 < restartdate) && ($2 >= restartdate)) {print $1"_"$2}}' ) 
    754754                if [ ! X${IsMatching} = X ] ; then 
    755755                  TarFileFound=${PotentialTarFile} 
Note: See TracChangeset for help on using the changeset viewer.