scripts/rvm-install in rvm-0.0.50 vs scripts/rvm-install in rvm-0.0.51
- old
+ new
@@ -10,27 +10,27 @@
question="\n\033[0;32m<?>\033[0m"
cwd=$(pwd)
source_dir="${source_dir:-`dirname $0 | xargs dirname`}"
if [ ! -d "$source_dir" ] ; then unset source_dir ; fi
source_dir="${source_dir:-$cwd}"
-rvm_dir=~/.rvm
+rvm_path=~/.rvm
# State what is required to use rvm
echo -e "\n\033[0;32mrvm\033[0m\n\n shell scripts that allows a user to manage multiple ruby versions in their own account."
echo -e "\n Installing rvm to ~/.rvm/ ..."
for dir_name in src scripts bin log archives config gems examples ; do
- mkdir -p $rvm_dir/$dir_name
+ mkdir -p $rvm_path/$dir_name
done
for dir_name in config scripts examples lib ; do
- mkdir -p $rvm_dir/$dir_name
- /bin/cp -Rf $source_dir/$dir_name $rvm_dir
+ mkdir -p $rvm_path/$dir_name
+ /bin/cp -Rf $source_dir/$dir_name $rvm_path
done ; unset dir_name
for file_name in rvm-prompt gemsync ; do
- mv $rvm_dir/scripts/$file_name $rvm_dir/bin/
- chmod +x $rvm_dir/bin/$file_name
+ mv $rvm_path/scripts/$file_name $rvm_path/bin/
+ chmod +x $rvm_path/bin/$file_name
done ; unset file_name
results=$(grep 'scripts/rvm' ~/.bash_profile ~/.bashrc ~/.zshrc > /dev/null)
if [ $? -gt 0 ] ; then
if [ ! -z "`echo $PS1`" ] ; then
@@ -165,9 +165,9 @@
echo -e "\n \033[0;33mRTFM: \033[0m http://rvm.beginrescueend.com/ \n"
echo -e '\033[0;32mw⦿‿⦿t!\033[0m'
echo -e "\n ~ Wayne\n"
-source $rvm_dir/scripts/rvm
+source $rvm_path/scripts/rvm
rvm -v
echo