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

    r160 r173  
    722722    fi 
    723723 
    724     typeset RET 
    725  
    726     echo mv $@ > out_rsync 2>&1 
    727     \mv $@ >> out_rsync 2>&1 
    728     RET=$? 
    729  
    730     if [ ${RET} -gt 0 ] ; then 
    731         echo "IGCM_sys_Mv : error in mv." 
    732         cat out_rsync 
    733         IGCM_debug_Exit "IGCM_sys_Mv" 
     724    if [ $DRYRUN = 0 ]; then 
     725 
     726        typeset RET 
     727             
     728        echo mv $@ > out_rsync 2>&1 
     729        \mv $@ >> out_rsync 2>&1 
     730        RET=$? 
     731     
     732        if [ ${RET} -gt 0 ] ; then 
     733            echo "IGCM_sys_Mv : error in mv." 
     734            cat out_rsync 
     735            IGCM_debug_Exit "IGCM_sys_Mv" 
     736        fi 
     737    else 
     738        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
    734739    fi 
    735740 
Note: See TracChangeset for help on using the changeset viewer.