New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5580 for branches/UKMO/dev_r5107_xios_initialize_toyoce/NEMOGCM/CONFIG/makenemo – NEMO

Ignore:
Timestamp:
2015-07-10T10:08:01+02:00 (9 years ago)
Author:
davestorkey
Message:

Finish upgrade of UKMO/dev_r5107_xios_initialize_toyoce branch to trunk revision 5518. (Previous commit only upgraded part of the repository).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5107_xios_initialize_toyoce/NEMOGCM/CONFIG/makenemo

    r5277 r5580  
    200200       ;; 
    201201   add_key) 
    202        # Checking void argument 
    203        [ ! -z $2 ] && { list_add_key=$2; export ${list_add_key}; } 
     202            # Checking if argument has anything other than whitespace 
     203            [[ ! "$2" =~ ^\ +$ ]] && { list_add_key=$2; export ${list_add_key}; } 
    204204       shift 
    205205       ;; 
    206206   del_key) 
    207        # Checking void argument 
    208        [ ! -z $2 ] && { list_del_key=$2; export ${list_del_key}; } 
     207            # Checking if argument has anything other than whitespace 
     208            [[ ! "$2" =~ ^\ +$ ]] && { list_del_key=$2; export ${list_del_key}; } 
    209209       shift 
    210210       ;; 
     
    317317 
    318318#- At this stage new configuration has been added, we add or remove keys 
    319 [ ! -z ${list_add_key} ] && { . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key}; } 
    320 [ ! -z ${list_del_key} ] && { . ${COMPIL_DIR}/Fdel_keys.sh ${NEW_CONF} del_key ${list_del_key}; } 
     319[ ! -z "${list_add_key}" ] && { . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key}; } 
     320[ ! -z "${list_del_key}" ] && { . ${COMPIL_DIR}/Fdel_keys.sh ${NEW_CONF} del_key ${list_del_key}; } 
    321321 
    322322#- check that all keys are really existing... 
Note: See TracChangeset for help on using the changeset viewer.