HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/rvm/scripts/functions/hooks/rbx
#!/usr/bin/env bash

export RBXOPT

rbx_options_trim()
{
  RBXOPT="${RBXOPT## }"
  RBXOPT="${RBXOPT%% }"
}

rbx_options_append()
{
  for param in "$@"
  do
    if [[ " ${RBXOPT} " != *" $param "* ]]
    then
      RBXOPT="${RBXOPT} $param"
    fi
  done
  rbx_options_trim
}

rbx_options_remove()
{
  RBXOPT=" ${RBXOPT} "
  for param in "$@"
  do
    if [[ "${RBXOPT}" == *" $param "* ]]
    then
      RBXOPT="${RBXOPT// $param / }"
    fi
  done
  rbx_options_trim
}

rbx_clean_project_options()
{
  if [[ -n "${PROJECT_RBXOPT}" ]]
  then
    unset PROJECT_RBXOPT
  fi
}