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/gem-owners.sh
REPOS=(
  bundler-unload
  executable-hooks
  gem-empty
  gem-wrappers
  rubygems-bundler
  rvm
  rvm-capistrano
  rvm-with
  rvm1-capistrano3
  rvm2
  rvm2-shell
  rvm2-ui
  tf
  pluginator
)

\typeset repo owner
\typeset -a params
params=()

if
  [[ $# -gt 0 ]]
then
  for owner in "$@"
  do
    params+=( --add "$owner" )
  done
fi

for repo in "${REPOS[@]}"
do
  gem owner "$repo" "${params[@]}"
done