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

    r160 r173  
    708708    fi 
    709709 
    710     typeset RET 
    711  
    712     echo mv $@ > out_rsync 2>&1 
    713     \mv $@ >> out_rsync 2>&1 
    714     RET=$? 
     710    if [ $DRYRUN = 0 ]; then 
     711 
     712        typeset RET 
     713             
     714        echo mv $@ > out_rsync 2>&1 
     715        \mv $@ >> out_rsync 2>&1 
     716        RET=$? 
    715717     
    716     if [ ${RET} -gt 0 ] ; then 
    717         echo "IGCM_sys_Mv : error in mv." 
    718         cat out_rsync 
    719         IGCM_debug_Exit "IGCM_sys_Mv" 
     718        if [ ${RET} -gt 0 ] ; then 
     719            echo "IGCM_sys_Mv : error in mv." 
     720            cat out_rsync 
     721            IGCM_debug_Exit "IGCM_sys_Mv" 
     722        fi 
     723    else 
     724        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack 
    720725    fi 
    721726 
Note: See TracChangeset for help on using the changeset viewer.