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_mercure.ksh

    r733 r734  
    16171617  fi 
    16181618 
    1619   typeset NB_ESSAI DELAI status i lastArg 
     1619  typeset NB_ESSAI DELAI status i firstArg 
    16201620  # number of tentative 
    16211621  NB_ESSAI=3 
     
    16321632      \rm out_rsync 
    16331633      IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 
    1634       eval lastArg=\$$# 
    1635       \rm ${lastArg} 
     1634      firstArg=${1} 
     1635      \rm ${firstArg} 
    16361636      sleep $DELAI 
    16371637    else 
Note: See TracChangeset for help on using the changeset viewer.