1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 23:03:53 -05:00

Fix some issues reported by shellcheck

This commit is contained in:
Daniel Hahler
2017-06-24 00:12:09 +02:00
parent eda952ab08
commit 5f8a4c4d62
6 changed files with 15 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ remove_outdated_shims() {
list_executable_names() {
local version file
rbenv-versions --bare --skip-aliases | \
while read version; do
while read -r version; do
for file in "${RBENV_ROOT}/versions/${version}/bin/"*; do
echo "${file##*/}"
done
@@ -136,6 +136,7 @@ shopt -s nullglob
# executables.
create_prototype_shim
remove_outdated_shims
# shellcheck disable=SC2046
make_shims $(list_executable_names | sort -u)