Changeset 5462 for branches/UKMO/restart_datestamp/NEMOGCM/CONFIG/makenemo
- Timestamp:
- 2015-06-22T16:40:58+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/restart_datestamp/NEMOGCM/CONFIG/makenemo
r5420 r5462 200 200 ;; 201 201 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}; } 204 204 shift 205 205 ;; 206 206 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}; } 209 209 shift 210 210 ;; … … 317 317 318 318 #- 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}; } 321 321 322 322 #- check that all keys are really existing...
Note: See TracChangeset
for help on using the changeset viewer.