scripts/manage in rvm-0.1.46 vs scripts/manage in rvm-0.1.47
- old
+ new
@@ -1188,11 +1188,11 @@
[[ "$result" = 0 && "$rvm_action" = "install" ]] && __rvm_record_install "$current_manage_ruby_string"
unset current_manage_ruby_string
__rvm_unset_ruby_variables
done
else # all
- if [[ "$rvm_action" != "install" ]] ; then
+ if [[ "$rvm_action" != "install" && "$rvm_action" != "remove" && "$rvm_action" != "uninstall" ]] ; then
while read -r bin_line
do # Keep this on second line damnit!
if [[ -x "$bin_line" ]] ; then
current_manage_ruby_string="$(dirname "$bin_line" | xargs dirname | xargs basename)"
rvm_ruby_string="$current_manage_ruby_string"
@@ -1206,17 +1206,18 @@
unset current_manage_ruby_string
__rvm_unset_ruby_variables
fi
done < <(\ls $rvm_rubies_path/*/bin/ruby 2> /dev/null)
else
- $rvm_scripts_path/log "warn" 'Really? Install all? See "rvm list known" and limit the selection to something more sane please :)'
+ $rvm_scripts_path/log "warn" 'Really? '"$rvm_action"' all? See "rvm list known" and limit the selection to something more sane please :)'
fi
fi
# TODO: This should return the exit status of the command that got called.
return $manage_result
}
-rvm_action="$1" ; rubies_string="$2"
+rvm_action="$1"
+rubies_string="$2"
__rvm_manage_rubies
exit $?