Skip to content

Commit 1871180

Browse files
committed
Local variables.
1 parent 9a0a269 commit 1871180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/chruby/chruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ CHRUBY_VERSION="0.3.8"
22

33
function chruby_rubies()
44
{
5+
local rubies dir ruby version
56
rubies=()
6-
77
for dir in "$@"; do
88
[[ -d "$dir" ]] && for ruby in "$dir"/*; do
99
[[ -d "$ruby" ]] && version="${ruby##*/}" && rubies+=("${version/-/.}\t$ruby")

0 commit comments

Comments
 (0)