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 5142 for trunk/NEMOGCM/CONFIG – NEMO

Changeset 5142 for trunk/NEMOGCM/CONFIG


Ignore:
Timestamp:
2015-03-11T13:22:02+01:00 (9 years ago)
Author:
timgraham
Message:

Fix for ticket 1485

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/CONFIG/makenemo

    r5092 r5142  
    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       ;; 
Note: See TracChangeset for help on using the changeset viewer.