⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
opt
/
nvm
/
test
/
fast
/
View File Name :
Running "nvm use iojs" uses latest io.js version
#!/bin/sh set -ex \. ../common.sh die () { echo "$@" ; cleanup ; exit 1; } VERSION="v3.99.0" cleanup() { unset -f make_echo cleanup rm -rf "$(nvm_version_path "iojs-${VERSION}")" } \. ../../nvm.sh nvm deactivate || die "unable to deactivate; current: >$(nvm current)<" make_fake_iojs "${VERSION}" || die "unable to make_fake_iojs ${VERSION}" IOJS_VERSION="$(nvm_version iojs)" [ -n "${IOJS_VERSION}" ] || die 'expected an io.js version; got none' EXPECTED_OUTPUT="$(nvm_add_iojs_prefix ${VERSION})" [ "${IOJS_VERSION}" = "${EXPECTED_OUTPUT}" ] || die "iojs version was not >${EXPECTED_OUTPUT}; got >${IOJS_VERSION}<" nvm use --delete-prefix iojs || die '`nvm use iojs` failed' # Remove node_modules/.bin from the path so that the system version `which` is # used in nvm_ls_current PATH=$(echo "$PATH" | tr ":" "\n" | grep -v "node_modules/.bin" | tr "\n" ":") CURRENT="$(nvm current)" echo "current: ${CURRENT}" [ "${CURRENT}" = "${IOJS_VERSION}" ] || die "expected >${IOJS_VERSION}<; got >${CURRENT}<" cleanup