1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 06:13:53 -05:00

Use read -a to split output into an array (#1450)

This commit is contained in:
Mislav Marohnić
2022-10-09 14:48:13 +02:00
committed by GitHub
parent 90c0357682
commit 8275e15cb0
8 changed files with 14 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ if [ -z "$RBENV_COMMAND" ]; then
exit 1
fi
IFS=: hook_paths=($RBENV_HOOK_PATH)
IFS=: read -r -a hook_paths <<<"$RBENV_HOOK_PATH"
shopt -s nullglob
for path in "${hook_paths[@]}"; do