Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

21 righe
458 B

  1. #!/usr/bin/env bash
  2. # Summary: Explain how the current Ruby version is set
  3. set -e
  4. [ -n "$RBENV_DEBUG" ] && set -x
  5. unset RBENV_VERSION_ORIGIN
  6. OLDIFS="$IFS"
  7. IFS=$'\n' scripts=(`rbenv-hooks version-origin`)
  8. IFS="$OLDIFS"
  9. for script in "${scripts[@]}"; do
  10. source "$script"
  11. done
  12. if [ -n "$RBENV_VERSION_ORIGIN" ]; then
  13. echo "$RBENV_VERSION_ORIGIN"
  14. elif [ -n "$RBENV_VERSION" ]; then
  15. echo "RBENV_VERSION environment variable"
  16. else
  17. rbenv-version-file
  18. fi