Ignore:
Timestamp:
10/29/12 12:22:53 (12 years ago)
Author:
sdipsl
Message:
  • bugfix : looping over rebuild command we must delete the first arguments not the last one.
  • bugfix : catching the last arg we must use this eval lastArg=\${$#} otherwise we won't catch the latest arguments if there are more than 9.
  • add date to debug print
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh

    r733 r734  
    18581858  fi 
    18591859 
    1860   typeset NB_ESSAI DELAI status i lastArg 
     1860  typeset NB_ESSAI DELAI status i firstArg 
    18611861  # number of tentative 
    18621862  NB_ESSAI=3 
     
    18731873      \rm out_rsync 
    18741874      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    1875       eval lastArg=\$$# 
    1876       \rm ${lastArg} 
     1875      firstArg=${1} 
     1876      \rm ${firstArg} 
    18771877      sleep $DELAI 
    18781878    else 
Note: See TracChangeset for help on using the changeset viewer.