Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # rvm : Ruby enVironment Manager
- # https://rvm.beginrescueend.com
- # https://github.com/wayneeseguin/rvm
- # TODO: Alter the variable names to make sense
- \export HOME rvm_prefix rvm_user_install_flag rvm_path
- HOME="${HOME%%+(\/)}" # Remove trailing slashes if they exist on HOME
- if (( ${rvm_ignore_rvmrc:=0} == 0 ))
- then
- for rvmrc in /etc/rvmrc "$HOME/.rvmrc"
- do
- if [[ -f "$rvmrc" ]]
- then
- if \grep '^\s*rvm .*$' "$rvmrc" >/dev/null 2>&1
- then
- printf "\nError:
- $rvmrc is fo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement