Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/local/rvm/scripts/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/rvm/scripts/functions/install
#!/usr/bin/env bash

__rvm_record_install()
{
  [[ -n "$1" ]] || return

  \typeset recorded_ruby_name rvm_install_record_file
  recorded_ruby_name="$( "$rvm_scripts_path/tools" strings "$1" )"
  rvm_install_record_file="$rvm_user_path/installs"

  [[ -f "$rvm_install_record_file" ]] || \command \touch "$rvm_install_record_file"
  __rvm_sed_i "$rvm_install_record_file" -e "/^$recorded_ruby_name/d"

  #TODO: use `for` so  rvm_configure_flags are quoted properly
  printf "%b" "$recorded_ruby_name -- ${rvm_configure_flags[*]}\n" >> "$rvm_install_record_file"
}

__rvm_remove_install_record()
{
  \typeset recorded_ruby_name rvm_install_record_file
  recorded_ruby_name="$( "$rvm_scripts_path/tools" strings "$1" )"
  rvm_install_record_file="$rvm_user_path/installs"

  if [[ -s "$rvm_install_record_file" ]]
  then __rvm_sed_i "$rvm_install_record_file" -e "/^$recorded_ruby_name/d"
  fi
}

__rvm_recorded_install_command()
{
  \typeset recorded_ruby_name
  recorded_ruby_name="$( "$rvm_scripts_path/tools" strings "$1" )"
  recorded_ruby_name=${recorded_ruby_name%%${rvm_gemset_seperator:-"@"}*}

  [[ -n "$recorded_ruby_name" ]] || return 1

  if
    [[ -s "$rvm_user_path/installs" ]] &&
    __rvm_grep "^$recorded_ruby_name " "$rvm_user_path/installs" >/dev/null 2>&1
  then
    __rvm_grep "^$recorded_ruby_name " "$rvm_user_path/installs" | \command \head -n 1
  else
    return 1
  fi
}

Hry