Просмотр исходного кода

I should have used basename only to check shims

pull/953/head
Yamashita, Yuu 9 лет назад
Родитель
Сommit
e9ad498fe3
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      pyenv.d/rehash/conda.bash
  2. +1
    -1
      pyenv.d/rehash/source.bash

+ 1
- 1
pyenv.d/rehash/conda.bash Просмотреть файл

@ -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 Просмотреть файл

@ -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

Загрузка…
Отмена
Сохранить