scripts/rvm-install in rvm-0.0.999 vs scripts/rvm-install in rvm-0.0.9999
- old
+ new
@@ -26,11 +26,11 @@
--version) rvm_path="$(pwd)" ; __rvm_version ; unset rvm_path ; exit ;;
--help|*) usage ;;
esac
done
-if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi
-if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
+if [[ -s /etc/rvmrc ]] ; then source /etc/rvmrc ; fi
+if [[ -s "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
if ! [[ "$rvm_path" =~ /rvm/?$ ]] ; then
unset rvm_path
if [[ "root" = "$(whoami)" ]] ; then
rvm_path="/usr/local/rvm"