mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
[chruby] scope variable to local to prevent a leak
This commit is contained in:
parent
f94d4e6a40
commit
e91091acdb
1 changed files with 2 additions and 2 deletions
|
|
@ -55,8 +55,8 @@ _source_from_omz_settings() {
|
|||
}
|
||||
|
||||
_chruby_dirs() {
|
||||
chrubydirs=($HOME/.rubies/ $PREFIX/opt/rubies)
|
||||
for dir in chrubydirs; do
|
||||
local _chrubydirs=($HOME/.rubies/ $PREFIX/opt/rubies)
|
||||
for dir in _chrubydirs; do
|
||||
if [[ -d $dir ]]; then
|
||||
RUBIES+=$dir
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue