mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +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() {
|
_chruby_dirs() {
|
||||||
chrubydirs=($HOME/.rubies/ $PREFIX/opt/rubies)
|
local _chrubydirs=($HOME/.rubies/ $PREFIX/opt/rubies)
|
||||||
for dir in chrubydirs; do
|
for dir in _chrubydirs; do
|
||||||
if [[ -d $dir ]]; then
|
if [[ -d $dir ]]; then
|
||||||
RUBIES+=$dir
|
RUBIES+=$dir
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue