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-global
#!/usr/bin/env bash
#
# Summary: Set or show the global Node version
#
# Usage: nodenv global <version>
#
# Sets the global Node version. You can override the global version at
# any time by setting a directory-specific version with `nodenv local'
# or by setting the `NODENV_VERSION' environment variable.
#
# <version> should be a string matching a Node version known to nodenv.
# The special version string `system' will use your default system Node.
# Run `nodenv versions' for a list of available Node versions.

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

# Provide nodenv completions
if [ "$1" = "--complete" ]; then
  echo --unset
  echo system
  exec nodenv-versions --bare
fi

NODENV_VERSION="$1"
NODENV_VERSION_FILE="${NODENV_ROOT:?}/version"

if [ "$1" = "--unset" ]; then
  exec rm -f "$NODENV_VERSION_FILE"
fi

if [ -n "$NODENV_VERSION" ]; then
  nodenv-version-file-write "$NODENV_VERSION_FILE" "$NODENV_VERSION"
else
  nodenv-version-file-read "$NODENV_VERSION_FILE" || echo system
fi

Hry