Skip to content

Instantly share code, notes, and snippets.

@dtolj
Created October 27, 2011 23:48
Show Gist options
  • Save dtolj/1321231 to your computer and use it in GitHub Desktop.
Save dtolj/1321231 to your computer and use it in GitHub Desktop.
RVM-install
+ shopt -s extglob
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ : 5 > export PS4
+ : 6 > set -o errtrace
+ : 7 > set -o errexit
+ : 169 > [[ --trace =~ --trace ]]
+ : 171 > set -o xtrace
+ : 172 > export rvm_trace_flag=1
+ : 172 > rvm_trace_flag=1
+ : 177 > true 1 0 0 0 HOME=/home/dtolj
+ : 181 > (( rvm_ignore_rvmrc == 0 ))
+ : 183 > for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"'
+ : 185 > [[ -s /etc/rvmrc ]]
+ : 187 > grep '^\s*rvm .*$' /etc/rvmrc
+ : 194 > source /etc/rvmrc
++ /etc/rvmrc : 3 > [[ ! -s /home/dtolj/.rvm/scripts/rvm ]]
++ /etc/rvmrc : 4 > umask g+w
++ /etc/rvmrc : 5 > export rvm_selfcontained=0
++ /etc/rvmrc : 5 > rvm_selfcontained=0
++ /etc/rvmrc : 6 > export rvm_prefix=/usr/local/
++ /etc/rvmrc : 6 > rvm_prefix=/usr/local/
+ : 183 > for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"'
+ : 185 > [[ -s /home/dtolj/.rvmrc ]]
+ : 200 > [[ -z '' ]]
+ : 202 > (( UID == 0 ))
+ : 204 > rvm_path=/usr/local/rvm
+ : 209 > export HOME rvm_path
+ : 212 > (( 1 > 0 ))
+ : 214 > token=--trace
+ : 215 > shift
+ : 216 > case "$token" in
+ : 219 > set -o xtrace
+ : 220 > export rvm_trace_flag=1
+ : 220 > rvm_trace_flag=1
+ : 212 > (( 0 > 0 ))
+ : 285 > true head
+ : 287 > [[ /usr/local/rvm != /* ]]
+ : 292 > rvm_src_path=/usr/local/rvm/src
+ : 293 > rvm_archives_path=/usr/local/rvm/archives
+ : 294 > rvm_releases_url=https://rvm.beginrescueend.com/releases
+ : 296 > for dir in '"$rvm_src_path"' '"$rvm_archives_path"'
+ : 298 > [[ ! -d /usr/local/rvm/src ]]
+ : 296 > for dir in '"$rvm_src_path"' '"$rvm_archives_path"'
+ : 298 > [[ ! -d /usr/local/rvm/archives ]]
+ : 306 > case "${version}" in
+ : 308 > install_head
+ : install_head() 121 > local remote=origin
+ : install_head() 123 > [[ -d /usr/local/rvm/src/rvm/.git ]]
+ : install_head() 125 > builtin cd /usr/local/rvm/src/rvm/
++ : install_head() 127 > git branch
++ : install_head() 127 > awk '/$/'
+ : install_head() 127 > [[ -z * master ]]
++ : install_head() 135 > git branch
++ : install_head() 135 > awk '/\* $/{print $2}'
+ : install_head() 135 > [[ -z '' ]]
+ : install_head() 137 > git checkout
+ : install_head() 139 > log 'Successfully checked out branch '\'''\'''
+ : log() 9 > printf 'Successfully checked out branch '\'''\''\n'
Successfully checked out branch ''
+ : log() 9 > return 0
+ : install_head() 145 > git pull --rebase origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment