scripts/env in rvm-1.0.2 vs scripts/env in rvm-1.0.3
- old
+ new
@@ -1,16 +1,19 @@
#!/usr/bin/env bash
+if [[ "$rvm_trace_flag" -eq 2 ]] ; then set -x ; export rvm_trace_flag ; fi
+
# Recursive loops, oh my!
unset rvm_default_flag
source "$rvm_scripts_path/base"
usage() {
printf "Usage: rvm env [ruby_string] [--path]\n"
}
-environment_name="$1"
+args=($*)
+environment_name="${args[0]}"
if [[ -z "$environment_name" ]]; then
usage ; exit 1
fi