scripts/rvm-install in rvm-0.0.44 vs scripts/rvm-install in rvm-0.0.45
- old
+ new
@@ -13,18 +13,23 @@
if [ ! -d "$source_dir" ] ; then unset source_dir ; fi
source_dir="${source_dir:-$cwd}"
rvm_dir=~/.rvm
echo -e "\nInstalling rvm to ~/.rvm/ ..."
-for dir in src scripts bin log archives config gems examples ; do
- mkdir -p $rvm_dir/$dir
+for dir_name in src scripts bin log archives config gems examples ; do
+ mkdir -p $rvm_dir/$dir_name
done
-for dir in config scripts examples lib ; do
- mkdir -p $rvm_dir/$dir
- /bin/cp -Rf $source_dir/$dir $rvm_dir
-done
-cp $source_dir/scripts/rvm-prompt $rvm_dir/bin/
-chmod +x $rvm_dir/bin/rvm-prompt
+
+for dir_name in config scripts examples lib ; do
+ mkdir -p $rvm_dir/$dir_name
+ /bin/cp -Rf $source_dir/$dir_name $rvm_dir
+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
+done ; unset file_name
+
# State what is required to use rvm
echo -e "\n\033[0;32mrvm\033[0m is a shell script that allows a user to manage multiple ruby versions in their own account."
echo -e "$info In order to use rvm the following line must occur in your shell's loading files:"
echo -e "\n\033[0;32m (a)\033[0m if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi"