Changeset 26808


Ignore:
Timestamp:
01/23/22 00:48:36 (3 years ago)
Author:
jdquinn
Message:

BUG: Corrected conditionals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r26804 r26808  
    211211        if test "${IS_MAC}" == "yes"; then
    212212                sys_ver=$(sw_vers -productVersion)
    213                 if [[ $(echo ${sys_ver} | cut -d "." -f 1) -eq 10 && $(echo ${sys_ver} | cut -d "." -f 2) -eq 13 ]]; then
     213                if test $(echo ${sys_ver} | cut -d "." -f 1) -eq 10 && test $(echo ${sys_ver} | cut -d "." -f 2) -lt 13; then
    214214                        SYSTEM_FMEMOPEN=0
    215215                fi
     
    27222722        )
    27232723        dnl Check that supplied value is an integer
    2724         if [[ "${NUMTHREADS_VALUE}" != "${NUMTHREADS_VALUE}" 2> /dev/null ]]; then
     2724        if test "${NUMTHREADS_VALUE}" != "${NUMTHREADS_VALUE}"; then
    27252725                AC_MSG_ERROR([Number of threads provided (${NUMTHREADS_VALUE}) is not an integer!]);
    27262726        elif test "${NUMTHREADS_VALUE}" == "0"; then
Note: See TracChangeset for help on using the changeset viewer.