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

    r160 r173  
    684684    fi 
    685685 
    686     typeset RET 
    687  
    688     echo mv $@ > out_rsync 2>&1 
    689     \mv $@ >> out_rsync 2>&1 
    690     RET=$? 
    691  
    692     if [ ${RET} -gt 0 ] ; then 
    693         echo "IGCM_sys_Mv : error in mv." 
    694         cat out_rsync 
    695         IGCM_debug_Exit "IGCM_sys_Mv" 
     686    if [ $DRYRUN = 0 ]; then 
     687 
     688        typeset RET 
     689             
     690        echo mv $@ > out_rsync 2>&1 
     691        \mv $@ >> out_rsync 2>&1 
     692        RET=$? 
     693     
     694        if [ ${RET} -gt 0 ] ; then 
     695            echo "IGCM_sys_Mv : error in mv." 
     696            cat out_rsync 
     697            IGCM_debug_Exit "IGCM_sys_Mv" 
     698        fi 
     699    else 
     700        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
    696701    fi 
    697702 
Note: See TracChangeset for help on using the changeset viewer.