Skip to content

Instantly share code, notes, and snippets.

@rabcyr
Created July 12, 2014 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rabcyr/de647947e407d3afec55 to your computer and use it in GitHub Desktop.
Save rabcyr/de647947e407d3afec55 to your computer and use it in GitHub Desktop.
rvm
root@ruby01:~# \curl -sSL https://get.rvm.io | bash -s stable --trace
+ : rvm_install_parse_params() 481 > rvm_trace_flag=1
+ : rvm_install_parse_params() 482 > flags+=("$token")
+ : rvm_install_parse_params() 483 > forwarded_flags+=("$token")
+ : rvm_install_parse_params() 473 > (( 0 > 0 ))
+ : rvm_install_parse_params() 649 > (( 0 > 0 && 0 == 0 ))
+ : rvm_install_parse_params() 653 > true head
+ : rvm_install_parse_params() 654 > true stable
+ : rvm_install_parse_params() 656 > [[ -z '' ]]
+ : rvm_install_parse_params() 657 > sources=("${DEFAULT_SOURCES[@]}")
+ : rvm_install_parse_params() 660 > rvm_src_path=/usr/local/rvm/src
+ : rvm_install_parse_params() 661 > rvm_archives_path=/usr/local/rvm/archives
+ : rvm_install_parse_params() 662 > rvm_releases_url=https://rvm.io/releases
+ : rvm_install() 792 > rvm_install_validate_rvm_path
+ : rvm_install_validate_rvm_path() 667 > case "$rvm_path" in
+ : rvm_install_validate_rvm_path() 695 > [[ /usr/local/rvm != /* ]]
+ : rvm_install() 793 > rvm_install_select_and_get_version
+ : rvm_install_select_and_get_version() 702 > for dir in '"$rvm_src_path"' '"$rvm_archives_path"'
+ : rvm_install_select_and_get_version() 704 > [[ -d /usr/local/rvm/src ]]
+ : rvm_install_select_and_get_version() 702 > for dir in '"$rvm_src_path"' '"$rvm_archives_path"'
+ : rvm_install_select_and_get_version() 704 > [[ -d /usr/local/rvm/archives ]]
+ : rvm_install_select_and_get_version() 707 > case "${version}" in
+ : rvm_install_select_and_get_version() 709 > echo stable
+ : rvm_install_select_and_get_version() 710 > install_head 'sources[@]' stable
+ : install_head() 307 > typeset _branch _source _sources _url
+ : install_head() 308 > _sources=(${!1})
+ : install_head() 309 > _branch=stable
+ : install_head() 310 > debug 'Selected RVM branch stable'
+ : debug() 28 > [[ 0 -eq 0 ]]
+ : install_head() 311 > for _source in '"${_sources[@]}"'
+ : install_head() 313 > case ${_source} in
+ : install_head() 318 > _url=https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
+ : install_head() 321 > get_and_unpack https://github.com/wayneeseguin/rvm/archive/stable.tar.gz rvm-stable.tgz
+ : get_and_unpack() 341 > typeset _url _file _patern _return
+ : get_and_unpack() 342 > _url=https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
+ : get_and_unpack() 343 > _file=rvm-stable.tgz
+ : get_and_unpack() 345 > log 'Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'
+ : log() 27 > printf '%b\n' 'Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
+ : get_and_unpack() 346 > __rvm_curl -sS https://github.com/wayneeseguin/rvm/archive/stable.tar.gz -o /usr/local/rvm/archives/rvm-stable.tgz
+ : __rvm_curl() 197 > __rvm_which curl
+ : __rvm_which() 221 > which curl
+ : __rvm_which() 221 > true
+ : __rvm_curl() 203 > typeset -a __flags
+ : __rvm_curl() 204 > __flags=(--fail --location --max-redirs 10)
+ : __rvm_curl() 206 > [[ -sS https://github.com/wayneeseguin/rvm/archive/stable.tar.gz -o /usr/local/rvm/archives/rvm-stable.tgz == *\-\-\m\a\x\-\t\i\m\e* ]]
+ : __rvm_curl() 207 > [[ -sS https://github.com/wayneeseguin/rvm/archive/stable.tar.gz -o /usr/local/rvm/archives/rvm-stable.tgz == *\-\-\c\o\n\n\e\c\t\-\t\i\m\e\o\u\t* ]]
+ : __rvm_curl() 208 > __flags+=(--connect-timeout 30 --retry-delay 2 --retry 3)
+ : __rvm_curl() 210 > [[ -n '' ]]
+ : __rvm_curl() 214 > __rvm_curl_output_control
+ : __rvm_curl_output_control() 179 > (( 0 == 1 ))
+ : __rvm_curl_output_control() 183 > [[ =~ -s ]]
+ : __rvm_curl_output_control() 183 > [[ =~ --silent ]]
+ : __rvm_curl() 216 > unset curl
+ : __rvm_curl() 217 > __rvm_debug_command curl --fail --location --max-redirs 10 --connect-timeout 30 --retry-delay 2 --retry 3 -sS https://github.com/wayneeseguin/rvm/archive/stable.tar.gz -o /usr/local/rvm/archives/rvm-stable.tgz
+ : __rvm_debug_command() 224 > debug 'Running(15): curl --fail --location --max-redirs 10 --connect-timeout 30 --retry-delay 2 --retry 3 -sS https://github.com/wayneeseguin/rvm/archive/stable.tar.gz -o /usr/local/rvm/archives/rvm-stable.tgz'
+ : debug() 28 > [[ 0 -eq 0 ]]
+ : __rvm_debug_command() 225 > curl --fail --location --max-redirs 10 --connect-timeout 30 --retry-delay 2 --retry 3 -sS https://github.com/wayneeseguin/rvm/archive/stable.tar.gz -o /usr/local/rvm/archives/rvm-stable.tgz
+ : __rvm_debug_command() 226 > true
+ : get_and_unpack() 383 > [[ -d /usr/local/rvm/src/rvm ]]
+ : get_and_unpack() 384 > __rvm_cd /usr/local/rvm/src/rvm
+ : __rvm_cd() 330 > typeset old_cdpath ret
+ : __rvm_cd() 331 > ret=0
+ : __rvm_cd() 332 > old_cdpath=
+ : __rvm_cd() 333 > CDPATH=.
+ : __rvm_cd() 334 > chpwd_functions=
+ : __rvm_cd() 334 > builtin cd /usr/local/rvm/src/rvm
+ : __rvm_cd() 335 > CDPATH=
+ : __rvm_cd() 336 > return 0
+ : get_and_unpack() 391 > rm -rf '/usr/local/rvm/src/rvm/*'
+ : get_and_unpack() 392 > __rvm_debug_command tar xzf /usr/local/rvm/archives/rvm-stable.tgz --strip-components 1
+ : __rvm_debug_command() 224 > debug 'Running(5): tar xzf /usr/local/rvm/archives/rvm-stable.tgz --strip-components 1'
+ : debug() 28 > [[ 0 -eq 0 ]]
+ : __rvm_debug_command() 225 > tar xzf /usr/local/rvm/archives/rvm-stable.tgz --strip-components 1
+ : __rvm_debug_command() 226 > true
+ : install_head() 321 > return
+ : rvm_install() 794 > rvm_install_main
+ : rvm_install_main() 743 > flags+=(--path "$rvm_path")
+ : rvm_install_main() 744 > chmod +x ./scripts/install
chmod: cannot access './scripts/install': No such file or directory
root@ruby01:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment