scripts/rvm-install in rvm-0.0.71 vs scripts/rvm-install in rvm-0.0.72

- old
+ new

@@ -21,12 +21,12 @@ mkdir -p $rvm_path/$dir_name done rm -rf $rvm_path/scripts # Clear the old scripts directory so that the old style rvm- scripts are cleared out. for dir_name in config scripts examples lib ; do - mkdir -p $rvm_path/$dir_name - /bin/cp -Rf $source_dir/$dir_name $rvm_path + mkdir -p "$rvm_path/$dir_name" + cp -Rf "$source_dir/$dir_name" "$rvm_path" done ; unset dir_name for file_name in rvm-prompt gemsync ; do mv $rvm_path/scripts/$file_name $rvm_path/bin/ chmod +x $rvm_path/bin/$file_name @@ -51,22 +51,21 @@ actual_file="$(readlink $file)" # read the link target so we can preserve it. else actual_file="$file" fi - grep 'rvm\/bin\/rvm' $actual_file > /dev/null + grep 'rvm\/bin\/rvm' "$actual_file" > /dev/null if [[ $? -eq 0 ]] ; then - sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' $actual_file - rm -f $actual_file.orig + sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' "$actual_file" + rm -f "$actual_file.orig" fi if [[ -f ~/.profile ]] ; then - grep '.profile' $actual_file > /dev/null + grep '.profile' "$actual_file" > /dev/null if [[ $? -gt 0 ]] ; then profile=~/.profile - echo -e "\n" >> $actual_file - echo "source $profile" >> $actual_file + echo -e "\nsource ${profile}" >> "$actual_file" fi fi fi done @@ -86,9 +85,11 @@ if [[ ! -z "$rvm_apt_get_binary" ]] ; then echo -e " $item For jRuby (if you wish to use it) you will need:" echo -e " $ sudo aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk" echo -e " $item For ree (if you wish to use it) you will need:" echo -e " $ sudo aptitude install libreadline5-dev libssl-dev bison" + echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:" + echo -e " $ sudo aptitude install libxml2-dev" elif [[ ! -z "$rvm_emerge_binary" ]] ; then echo -e " $item For jRuby (if you wish to use it) you will need:" echo -e " $ sudo emerge dev-java/sun-jdk dev-java/sun-jre-bin"