Changeset 1152
- Timestamp:
- 01/19/15 15:45:38 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_card/libIGCM_card.ksh
r1136 r1152 204 204 IGCM_debug_PushStack "IGCM_card_WriteOption" $@ 205 205 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 209 207 IGCM_debug_Print 1 "!!! Issue with IGCM_card_WriteOption !!!" 210 208 IGCM_debug_Print 1 "We tried to write : $@" … … 212 210 IGCM_debug_Verif_Exit 213 211 fi 214 \rm ${tmpfile}215 212 216 213 # The tmpfile uses now the real path of the card to be modified, … … 279 276 280 277 if ( [ -r "$1" ] && [ -w "$1" ] && [ -f "$1" ] ) ; then 281 typeset tmpfile=tmpfile_$$282 278 if [ X"${4}" != X"" ]; then 283 279 tab=$4
Note: See TracChangeset
for help on using the changeset viewer.