#!/bin/bash user=`whoami` if [ "$user" = "root" ] ; then echo -e "\033[0;31m \033[0mroot user support is not implemented yet.\033[0m" exit 1 fi info="\n\033[0;32m\033[0m" echo -e "$info Updating rvm source ~/.rvm/bin/rvm ..." mkdir -p ~/.rvm/src ~/.rvm/bin for script in rvm ; do # Prepairing for refactoring. cp "`dirname "${0}"`/$script" ~/.rvm/bin/ done echo -e "\n Thank you, come again! \n" echo -e " ~ Wayne" source ~/.rvm/bin/rvm rvm symlinks