mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Iterate over just for actual files
This commit is contained in:
parent
5c91bc981c
commit
5931001cab
1 changed files with 2 additions and 0 deletions
|
@ -1256,6 +1256,7 @@ verify_python() {
|
|||
# Create symlinks
|
||||
local suffix="${1##python}"
|
||||
local file link
|
||||
shopt -s nullglob
|
||||
for file in "${PREFIX_PATH}/bin"/*; do
|
||||
if [[ "${file##*/}" == *"${suffix}" ]]; then
|
||||
if [[ "${file}" == *"-${suffix}" ]]; then
|
||||
|
@ -1268,6 +1269,7 @@ verify_python() {
|
|||
fi
|
||||
fi
|
||||
done
|
||||
shopt -u nullglob
|
||||
|
||||
if [ ! -x "${PYTHON_BIN}" ]; then
|
||||
{ colorize 1 "ERROR"
|
||||
|
|
Loading…
Reference in a new issue