Skip to content

Commit

Permalink
fix detecting installed rubies, update #1161
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 4, 2012
1 parent b76f98a commit 7164fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cli
Expand Up @@ -1005,7 +1005,7 @@ To reinstall use:
"
else
if
[[ $(ls -1 $rvm_rubies_path/*/bin/ruby 2>/dev/null | wc -l) -eq 0 ]] &&
[[ $(find $rvm_rubies_path -maxdepth 1 -mindepth 1 -type d 2>/dev/null | wc -l) -eq 0 ]] &&
rvm_is_a_shell_function no_warning
then
{
Expand Down Expand Up @@ -1062,7 +1062,7 @@ To reinstall use:
case "$rvm_action" in
reinstall|try_install|install)
if
[[ $(ls -1 $rvm_rubies_path/*/bin/ruby 2>/dev/null | wc -l) -eq 1 ]] &&
[[ $(find $rvm_rubies_path -maxdepth 1 -mindepth 1 -type d 2>/dev/null | wc -l) -eq 1 ]] &&
[[ ! -f "${rvm_environments_path}/default" ]] &&
rvm_is_a_shell_function no_warning
then
Expand Down

0 comments on commit 7164fb1

Please sign in to comment.