Changeset 1888


Ignore:
Timestamp:
09/17/12 18:59:38 (12 years ago)
Author:
aclsce
Message:

Fixed small bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/create_config_card.sh

    r1883 r1888  
    11#!/bin/bash 
    2  
    32## 
    43## Job permettant de recreer une partie du config.card d'une simulation 
     
    8988    grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep mesh_mask | awk '{print $3}' >> ${STORE_CP}/cp_files.list 
    9089    mesh_mask_path=$( grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep mesh_mask | awk '{print $3}' ) 
    91     grep -v $mesh_mask_path ${LISTE_DMNFS} > ${IGCM_TMP}/${$}.Listing_tmp.txt; mv ${IGCM_TMP}/${$}.Listing_tmp.txt ${LISTE_DMNFS}  
     90    if [ "x$mesh_mask_path" != "x" ] 
     91    then 
     92        grep -v $mesh_mask_path ${LISTE_DMNFS} > ${IGCM_TMP}/${$}.Listing_tmp.txt; mv ${IGCM_TMP}/${$}.Listing_tmp.txt ${LISTE_DMNFS}  
     93    fi 
    9294 
    9395    #On copie aussi le contenu du repertoire Exe/ 
Note: See TracChangeset for help on using the changeset viewer.