Stop assuming bash for source scripts

This commit is contained in:
Yamashita, Yuu 2017-07-21 00:55:37 +00:00
parent e9ad498fe3
commit ad5a7f0c17

View file

@ -11,7 +11,6 @@ shopt -u nullglob
eval "source_shim(){ case \"\${1##*/}\" in ${shims[@]} *)return 1;;esac;}"
cat > "${PROTOTYPE_SOURCE_SHIM_PATH}" <<SH
#!/usr/bin/env bash
[ -n "\$PYENV_DEBUG" ] && set -x
export PYENV_ROOT="${PYENV_ROOT}"
program="\$("$(command -v pyenv)" which "\${BASH_SOURCE##*/}")"