Changeset 24877


Ignore:
Timestamp:
05/19/20 20:00:11 (5 years ago)
Author:
Mathieu Morlighem
Message:

BUG: make this work with zsh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r24783 r24877  
    148148path_append(){ #{{{
    149149        if [ -d "${1}" ] && [[ ":${PATH}:" != *":${1}:"* ]]; then
    150                 path="${1}"
     150                PATH_IN="${1}"
    151151                if [[ "${ISSM_ARCH}" == "cygwin-intel" ]]; then
    152                         path=`cygpath -u "${1}"`
    153                 fi
    154                 export PATH="${PATH}:${path}"
     152                        PATH_IN=`cygpath -u "${1}"`
     153                fi
     154                export PATH="${PATH}:${PATH_IN}"
    155155        fi
    156156} #}}}
    157157path_prepend(){ #{{{
    158158        if [ -d "${1}" ] && [[ ":${PATH}:" != *":${1}:"* ]]; then
    159                 path="${1}"
     159                PATH_IN="${1}"
    160160                if [[ "${ISSM_ARCH}" == "cygwin-intel" ]]; then
    161                         path=`cygpath -u "${1}"`
    162                 fi
    163                 export PATH="${path}:${PATH}"
     161                        PATH_IN=`cygpath -u "${1}"`
     162                fi
     163                export PATH="${PATH_IN}:${PATH}"
    164164        fi
    165165} #}}}
Note: See TracChangeset for help on using the changeset viewer.