1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 23:33:45 -05:00

fix rehash when paths have spaces in them

fixes #450
This commit is contained in:
Jeffrey 'jf' Lim
2013-09-23 14:16:15 +08:00
committed by Mislav Marohnić
parent bdcc2e1790
commit caa4a8e228
2 changed files with 34 additions and 2 deletions

View File

@@ -82,9 +82,9 @@ remove_outdated_shims() {
# registered for installation as a shim. In this way, plugins may call
# `make_shims` with a glob to register many shims at once.
make_shims() {
local shims="$@"
local shims=("$@")
for file in $shims; do
for file in "${shims[@]}"; do
local shim="${file##*/}"
register_shim "$shim"
done