version 701 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env bash
  2. __rvm_version()
  3. {
  4. echo "rvm $(__rvm_version_installed) by $(__rvm_version_authors) [$(__rvm_version_website)]"
  5. }
  6. __rvm_version_website()
  7. {
  8. echo "https://rvm.io"
  9. }
  10. __rvm_version_authors()
  11. {
  12. echo "Michal Papis, Piotr Kuczynski, Wayne E. Seguin"
  13. }
  14. __rvm_version_copyright()
  15. {
  16. echo "(c) 2009-2017 $(__rvm_version_authors)"
  17. }
  18. __rvm_print_headline()
  19. {
  20. rvm_log "Ruby enVironment Manager ${rvm_version} $(__rvm_version_copyright)
  21. "
  22. }
  23. __rvm_version_remote()
  24. {
  25. __rvm_curl -s --max-time 10 https://github.com/rvm/rvm/raw/stable/VERSION || true
  26. }
  27. __rvm_version_installed()
  28. {
  29. echo "$(\command \cat "$rvm_path/VERSION") ($(\command \cat "$rvm_path/RELEASE" 2>/dev/null))"
  30. }