Permalink
Browse files

improve error msg, thx God for SO

  • Loading branch information...
1 parent 1a240cc commit fe2a0bbda22349472b59f2d5021710cb924651bb @mpapis mpapis committed Dec 20, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 scripts/functions/manage/base
@@ -1089,11 +1089,15 @@ __rvm_manage_rubies()
then
__rvm_custom_separated_array rubies , "${rubies_string}"
elif
- [[ "$action" == "install" || -z "${rubies_string}" ]]
+ [[ "$action" == "install" ]]
then
- # install || empty list
rvm_error 'Really? '"$action"', all? See "rvm list known" and limit the selection to something more sane please :)'
return 1
+ elif
+ [[ -z "${rubies_string}" ]]
+ then
+ rvm_error 'Really? '"$action"', all? See "rvm list" and limit the selection to something more sane please :)'
+ return 1
else
# explicit all && not install
if

0 comments on commit fe2a0bb

Please sign in to comment.