Ignore:
Timestamp:
09/04/09 10:04:33 (15 years ago)
Author:
mafoipsl
Message:

Add DRYRUN capability in Sys_Mv for all systems supported.

File:
1 edited

Legend:

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

    r160 r173  
    744744    fi 
    745745 
    746     typeset RET 
    747  
    748     echo mv $@ > out_rsync 2>&1 
    749     \mv $@ >> out_rsync 2>&1 
    750     RET=$? 
    751  
    752     if [ ${RET} -gt 0 ] ; then 
    753         echo "IGCM_sys_Mv : error in mv." 
    754         cat out_rsync 
    755         IGCM_debug_Exit "IGCM_sys_Mv" 
     746    if [ $DRYRUN = 0 ]; then 
     747 
     748        typeset RET 
     749             
     750        echo mv $@ > out_rsync 2>&1 
     751        \mv $@ >> out_rsync 2>&1 
     752        RET=$? 
     753     
     754        if [ ${RET} -gt 0 ] ; then 
     755            echo "IGCM_sys_Mv : error in mv." 
     756            cat out_rsync 
     757            IGCM_debug_Exit "IGCM_sys_Mv" 
     758        fi 
     759    else 
     760        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
    756761    fi 
    757762 
Note: See TracChangeset for help on using the changeset viewer.