Pārlūkot izejas kodu

I should have used basename only to check shims

pull/953/head
Yamashita, Yuu pirms 9 gadiem
vecāks
revīzija
e9ad498fe3
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      pyenv.d/rehash/conda.bash
  2. +1
    -1
      pyenv.d/rehash/source.bash

+ 1
- 1
pyenv.d/rehash/conda.bash Parādīt failu

@ -19,7 +19,7 @@ for shim in $(cat "${BASH_SOURCE%/*}/conda.d/"*".list" | sort | uniq | sed -e 's
fi
done
shopt -u nullglob
eval "conda_shim(){ case \"\$1\" in ${shims[@]} *)return 1;;esac;}"
eval "conda_shim(){ case \"\${1##*/}\" in ${shims[@]} *)return 1;;esac;}"
# override `make_shims` to avoid conflict between pyenv-virtualenv's `envs.bash`
# https://github.com/pyenv/pyenv-virtualenv/blob/v20160716/etc/pyenv.d/rehash/envs.bash

+ 1
- 1
pyenv.d/rehash/source.bash Parādīt failu

@ -8,7 +8,7 @@ for shim in $(cat "${BASH_SOURCE%/*}/source.d/"*".list" | sort | uniq | sed -e '
fi
done
shopt -u nullglob
eval "source_shim(){ case \"\$1\" in ${shims[@]} *)return 1;;esac;}"
eval "source_shim(){ case \"\${1##*/}\" in ${shims[@]} *)return 1;;esac;}"
cat > "${PROTOTYPE_SOURCE_SHIM_PATH}" <<SH
#!/usr/bin/env bash

Notiek ielāde…
Atcelt
Saglabāt