Changeset 5142


Ignore:
Timestamp:
2015-03-11T13:22:02+01:00 (6 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.