scripts/rvm in rvm-1.0.8 vs scripts/rvm in rvm-1.0.9
- old
+ new
@@ -3,10 +3,11 @@
# rvm : Ruby enVironment Manager
# http://rvm.beginrescueend.com
# http://github.com/wayneeseguin/rvm
if [[ ${rvm_loaded_flag:-0} -eq 0 || ${rvm_reload_flag:-0} -eq 1 ]] ; then
+
unset rvm_reload_flag
if [[ -z "$rvm_ignore_rvmrc" ]]; then
for rvmrc in /etc/rvmrc $HOME/.rvmrc ; do
if [[ -f "$rvmrc" ]] ; then
@@ -66,12 +67,10 @@
"RVM: Could not source script '$rvm_path/scripts/$script', file does not exist. RVM will likely not work as expected."
fi
done
- rvm_loaded_flag=1
-
rvm_version="$(awk '/:/{printf $NF"."}' "$rvm_path/lib/VERSION.yml")"
export rvm_version="${rvm_version/%.}"
alias rvm-restart="source '${rvm_path}/scripts/rvm'"
@@ -92,7 +91,9 @@
else
printf "\n\$rvm_path is not set. rvm cannot load."
fi
unset rvm_prefix_needs_trailing_slash rvm_bin_path rvm_man_path rvm_rc_files rvm_gems_path rvm_gems_cache_path rvm_selfcontained rvm_interactive_flag rvm_gems_path rvm_project_rvmrc_default rvm_gemset_separator
-fi
+ rvm_loaded_flag=1
+
+fi