scripts/env in rvm-0.1.37 vs scripts/env in rvm-0.1.38
- old
+ new
@@ -19,13 +19,11 @@
if [[ -z "$environment_name" ]]; then
usage ; exit 1
fi
-rvm_ruby_string="${environment_name}" ;
-
-# Ensure the string is valid before printing an env.
-{ __rvm_ruby_string && __rvm_select && __rvm_use; }> /dev/null 2>&1
+# Exit when we encounter an unknown environment name.
+__rvm_become "$environment_name"
if [[ "$?" = 0 ]]; then
__rvm_use
environment_file_path="$rvm_environments_path/$(__rvm_environment_identifier)"
# Echo the path or environment file.