Heray-Was-Here
Server : nginx/1.30.2
System : Linux elegant-dhawan.198-71-59-75.plesk.page 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64
User : realtyna_guys ( 10000)
PHP Version : 8.2.31
Disable Function : opcache_get_status
Directory :  /usr/libexec/nodenv/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/nodenv/nodenv-exec
#!/usr/bin/env bash
#
# Summary: Run an executable with the selected Node version
#
# Usage: nodenv exec <command> [arg1 arg2...]
#
# Runs an executable by first preparing PATH so that the selected Node
# version's `bin' directory is at the front.
#
# For example, if the currently selected Node version is 0.10.26:
#   nodenv exec bundle install
#
# is equivalent to:
#   PATH="$NODENV_ROOT/versions/0.10.26/bin:$PATH" bundle install

set -e
[ -n "$NODENV_DEBUG" ] && set -x

# Provide nodenv completions
if [ "$1" = "--complete" ]; then
  exec nodenv-shims --short
fi

NODENV_VERSION="$(nodenv-version-name)"
NODENV_COMMAND="$1"

if [ -z "$NODENV_COMMAND" ]; then
  nodenv-help --usage exec >&2
  exit 1
fi

export NODENV_VERSION
NODENV_COMMAND_PATH="$(nodenv-which "$NODENV_COMMAND")"
NODENV_BIN_PATH="${NODENV_COMMAND_PATH%/*}"

OLDIFS="$IFS"
IFS=$'\n' scripts=(`nodenv-hooks exec`)
IFS="$OLDIFS"
for script in "${scripts[@]}"; do
  source "$script"
done

shift 1
if [ "$NODENV_VERSION" != "system" ]; then
  export PATH="${NODENV_BIN_PATH}:${PATH}"
fi
exec -a "$NODENV_COMMAND" "$NODENV_COMMAND_PATH" "$@"

Hry