#!/usr/bin/env bash # Base is a collection general files + commonely included # setup functions. # Load the general scripts. # Use rvm_base_except="" to override the except. for script_name in initialize utility selector ; do if echo "${rvm_base_except:-""}" | \grep -vq "$script_name" ; then source "$rvm_path/scripts/$script_name" fi done unset script_name rvm_base_except #for option in errexit noclobber nounset ; do # set -o $option #done #if [[ -z "${ZSH_VERSION:-""}" ]] ; then # set -o errtrace # set -o pipefail #fi if [[ ${rvm_trace_flag:-0} -gt 0 ]]; then export rvm_trace_flag=1 set -o xtrace if [[ -z "${ZSH_VERSION:-""}" ]] ; then export PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' fi echo "In script '$0'" elif [[ ${rvm_debug_flag:-0} > 0 ]] ; then rvm_debug_flag=0 echo "In script '$0'" fi if [[ -n "${ZSH_VERSION:-""}" ]] ; then __array_start=1 else __array_start=0 fi export GEM_HOME GEM_PATH rvm_action rvm_alias_expanded rvm_archflags rvm_archive_extension rvm_bin_flag rvm_bin_path rvm_clang_flag rvm_configure_flags rvm_debug_flag rvm_default_flag rvm_delete_flag rvm_docs_type rvm_dump_environment_flag rvm_error_message rvm_expanding_aliases rvm_file_name rvm_gemdir_flag rvm_gemset_name rvm_gemstone_package_file rvm_gemstone_url rvm_head_flag rvm_hook rvm_install_arguments rvm_install_on_use_flag rvm_interactive_flag rvm_llvm_flag rvm_loaded_flag rvm_make_flags rvm_niceness rvm_nightly_flag rvm_only_path_flag rvm_parse_break rvm_patch_names rvm_patch_original_pwd rvm_pretty_print_flag rvm_prior_cc rvm_proxy rvm_quiet_flag rvm_ree_options rvm_reload_flag rvm_remove_flag rvm_ruby_alias rvm_ruby_aliases rvm_ruby_args rvm_ruby_binary rvm_ruby_bits rvm_ruby_configure rvm_ruby_file rvm_ruby_gem_home rvm_ruby_gem_path rvm_ruby_global_gems_path rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_load_path rvm_ruby_major_version rvm_ruby_make rvm_ruby_make_install rvm_ruby_minor_version rvm_ruby_mode rvm_ruby_name rvm_ruby_package_file rvm_ruby_package_name rvm_ruby_patch rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_require rvm_ruby_revision rvm_ruby_selected_flag rvm_ruby_sha rvm_ruby_string rvm_ruby_strings rvm_ruby_tag rvm_ruby_url rvm_ruby_user_tag rvm_ruby_version rvm_script_name rvm_sdk rvm_silent_flag rvm_sticky_flag rvm_system_flag rvm_token rvm_trace_flag rvm_use_flag rvm_user_flag rvm_verbose_flag rvm_wrapper_name # Cleanup tmp on exit. trap "__rvm_cleanup_temp_for '$$'" 0 1 2 3 15