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

    r160 r173  
    703703    fi 
    704704 
    705     typeset RET 
    706  
    707     echo mv $@ > out_rsync 2>&1 
    708     \mv $@ >> out_rsync 2>&1 
    709     RET=$? 
     705    if [ $DRYRUN = 0 ]; then 
     706 
     707        typeset RET 
     708             
     709        echo mv $@ > out_rsync 2>&1 
     710        \mv $@ >> out_rsync 2>&1 
     711        RET=$? 
    710712     
    711     if [ ${RET} -gt 0 ] ; then 
    712         echo "IGCM_sys_Mv : error in mv." 
    713         cat out_rsync 
    714         IGCM_debug_Exit "IGCM_sys_Mv" 
     713        if [ ${RET} -gt 0 ] ; then 
     714            echo "IGCM_sys_Mv : error in mv." 
     715            cat out_rsync 
     716            IGCM_debug_Exit "IGCM_sys_Mv" 
     717        fi 
     718    else 
     719        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
    715720    fi 
    716721 
Note: See TracChangeset for help on using the changeset viewer.