scripts/rvm-install in rvm-0.0.37 vs scripts/rvm-install in rvm-0.0.38

- old
+ new

@@ -91,12 +91,17 @@ if [ -L $file ] ; then # If the file is a symlink, actual_file=`readlink $file` # read the link target so we can preserve it. else actual_file="$file" fi - sed -i.orig 's/rvm\/bin\/rvm/rvm\/scripts\/rvm/g' $actual_file + 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 + fi + if [ -f ~/.profile ] ; then grep '.profile' $actual_file > /dev/null if [ $? -gt 0 ] ; then profile=~/.profile echo -e "\n" >> $actual_file @@ -115,9 +120,11 @@ mkdir -p $rvm_dir/$dir for file in `/bin/ls $source_dir/$dir/`; do cp $source_dir/$dir/$file $rvm_dir/$dir/$file done done +cp $source_dir/scripts/rvm-prompt $rvm_dir/bin/ +cp $source_dir/VERSION.yml $rvm_dir/ system=`uname` if [ "$system" = "Linux" ] ; then rvm_apt_get_binary=`which apt-get 2> /dev/null` rvm_emerge_binary=`which emerge 2> /dev/null`