scripts/list in rvm-1.0.9 vs scripts/list in rvm-1.0.10
- old
+ new
@@ -291,20 +291,21 @@
# This is not meant to be used with scripting. This is for interactive mode usage only.
args=($*)
action="${args[0]:-""}"
args=${args[@]:1} # Strip trailing / leading / extra spacing.
+
if [[ -z "$action" ]] ; then list_rubies ; exit 0 ; fi
case "$action" in
- known) list_known ;;
- known_strings) list_known_strings ;;
- gemsets) list_gemsets "$@" ;;
- default) list_default ;;
- rubies) list_rubies "$@" ;;
- strings) list_strings ;;
- ruby_svn_tags) list_ruby_svn_tags ;;
- help) usage ;;
- *) usage ; exit 1 ;;
+ known) list_known ;;
+ known_strings) list_known_strings ;;
+ gemsets) list_gemsets "$args" ;;
+ default) list_default ;;
+ rubies) list_rubies "$args" ;;
+ strings) list_strings ;;
+ ruby_svn_tags) list_ruby_svn_tags ;;
+ help) usage ;;
+ *) usage ; exit 1 ;;
esac
exit $?