Changeset 1152


Ignore:
Timestamp:
01/19/15 15:45:38 (9 years ago)
Author:
sdipsl
Message:
  • Avoid tmpfile usage. See #244
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_card/libIGCM_card.ksh

    r1136 r1152  
    204204  IGCM_debug_PushStack "IGCM_card_WriteOption" $@ 
    205205  if ( [ -r "$1" ] && [ -w "$1" ]  && [ -f "$1" ] ) ; then 
    206     typeset tmpfile=tmpfile_$$ 
    207     ( IGCM_card_PrintOption "$1" "$2" "$3" | grep "not found" ) > ${tmpfile} 
    208     if [ $( cat ${tmpfile} | wc -l ) -gt 0 ] ; then 
     206    if [ $( IGCM_card_PrintOption "$1" "$2" "$3" | grep "not found" | wc -l ) -gt 0 ] ; then 
    209207      IGCM_debug_Print 1 "!!! Issue with IGCM_card_WriteOption !!!" 
    210208      IGCM_debug_Print 1 "We tried to write : $@" 
     
    212210      IGCM_debug_Verif_Exit 
    213211    fi 
    214     \rm ${tmpfile} 
    215212 
    216213    # The tmpfile uses now the real path of the card to be modified, 
     
    279276 
    280277  if ( [ -r "$1" ] && [ -w "$1" ]  && [ -f "$1" ] ) ; then 
    281     typeset tmpfile=tmpfile_$$ 
    282278    if [ X"${4}" != X"" ]; then 
    283279      tab=$4 
Note: See TracChangeset for help on using the changeset viewer.