| Server IP : 172.67.131.151 / Your IP : 172.71.81.81 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/nodenv/ |
Upload File : |
#!/usr/bin/env bash
# Summary: Display the version of nodenv
#
# Displays the version number of this nodenv release, including the
# current revision from git, if available.
#
# The format of the git revision is:
# <version>+<num_commits>.<git_sha>
# where `num_commits` is the number of commits since `version` was
# tagged.
set -e
[ -n "$NODENV_DEBUG" ] && set -x
cd "${BASH_SOURCE%/*}" 2>/dev/null
version=1.4.0
semver_compliant() {
sed -E 's/-([[:digit:]]+)-g([[:alnum:]]+)/+\1.\2/'
}
if git remote -v 2>/dev/null | grep -q nodenv; then
git_revision="$(git describe --tags HEAD 2>/dev/null | semver_compliant || true)"
git_revision="${git_revision#v}"
fi
echo "nodenv ${git_revision:-$version}"