scripts/alias in rvm-0.1.44 vs scripts/alias in rvm-0.1.45
- old
+ new
@@ -57,12 +57,16 @@
$rvm_scripts_path/log "error" "usage: 'rvm alias [alias_name] [ruby_string]'"
result=1
else
if [[ -z "$rvm_alias" ]] ; then
rvm_ruby_string="$rvm_environment_identifier"
- rvm_expanding_aliases=1
- __rvm_become
- unset rvm_expanding_aliases
+ if [[ -z "$rvm_alias_expanded" ]]; then
+ rvm_expanding_aliases=1
+ __rvm_become
+ unset rvm_expanding_aliases
+ else
+ rvm_ruby_string="$rvm_environment_identifier"
+ fi
if [[ -z "$rvm_ruby_string" ]]; then
$rvm_scripts_path/log "error" "unknown ruby string specified"
result=1
return
fi