Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.216.199
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
.nvm /
test /
install_script /
Delete
Unzip
Name
Size
Permission
Date
Action
install_nvm_from_git
4.03
KB
-rwxrwxr-x
2025-06-22 16:20
nvm_check_global_modules
1.94
KB
-rwxrwxr-x
2025-06-22 16:20
nvm_detect_profile
3.94
KB
-rwxrwxr-x
2025-06-22 16:20
nvm_do_install
645
B
-rwxrwxr-x
2025-06-22 16:20
nvm_download
527
B
-rw-rw-r--
2025-06-22 16:20
nvm_install_dir
677
B
-rwxrwxr-x
2025-06-22 16:20
nvm_install_with_aliased_dot
454
B
-rwxrwxr-x
2025-06-22 16:20
nvm_install_with_node_version
303
B
-rwxrwxr-x
2025-06-22 16:20
nvm_profile_is_bash_or_zsh
817
B
-rwxrwxr-x
2025-06-22 16:20
nvm_reset
1.34
KB
-rwxrwxr-x
2025-06-22 16:20
nvm_source
3.04
KB
-rwxrwxr-x
2025-06-22 16:20
Save
Rename
#!/bin/sh cleanup () { unset -f die cleanup unset NVM_SOURCE out } die () { echo "$@" ; cleanup ; exit 1; } NVM_ENV=testing \. ../../install.sh # nvm_source with no parameter returns the git endpoint [ "$(nvm_source)" = "https://github.com/nvm-sh/nvm.git" ] || die "nvm_source without arguments should return the location of the git repo" NVM_INSTALL_GITHUB_REPO="other-user/other-nvm" nvm_source | grep "https://github.com/other-user/other-nvm.git$" > /dev/null || die "NVM_INSTALL_GITHUB_REPO=... nvm_source without arguments should return the location of the given git repo" # nvm_source with git parameter returns the location of the nvm repo [ "$(nvm_source "git")" = "https://github.com/nvm-sh/nvm.git" ] || die "nvm_source \"git\" should return the location of the git repo" NVM_INSTALL_GITHUB_REPO="other-user/other-nvm" nvm_source "git" | grep "https://github.com/other-user/other-nvm.git$" > /dev/null || die "NVM_INSTALL_GITHUB_REPO=... nvm_source \"git\" should return the location of the given git repo" # nvm_source with script parameter returns the location of nvm.sh [ "$(nvm_source "script")" = "https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/nvm.sh" ] || die "nvm_source \"script\" should return the location of nvm.sh" NVM_INSTALL_GITHUB_REPO="other-user/other-nvm" NVM_INSTALL_VERSION="v0.37.0" nvm_source "script" | grep "https://raw.githubusercontent.com/other-user/other-nvm/v0.37.0/nvm.sh$" > /dev/null || die "NVM_INSTALL_GITHUB_REPO=... NVM_INSTALL_VERSION=... nvm_source \"script\" should return the location of nvm.sh" # nvm_source with script-nvm-exec parameter returns the location of nvm-exec [ "$(nvm_source "script-nvm-exec")" = "https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/nvm-exec" ] || die "nvm_source \"script-nvm-exec\" should return the location of nvm.sh" NVM_INSTALL_GITHUB_REPO="other-user/other-nvm" NVM_INSTALL_VERSION="v0.37.0" nvm_source "script-nvm-exec" | grep "https://raw.githubusercontent.com/other-user/other-nvm/v0.37.0/nvm-exec$" > /dev/null || die "NVM_INSTALL_GITHUB_REPO=... NVM_INSTALL_VERSION=... nvm_source \"script-nvm-exec\" should return the location of nvm.sh" # nvm_source with any other parameter errors out and exits nvm_source "anything" 2> /dev/null && die "nvm_source with invalid parameter should exit" out=$(nvm_source "anything" 2>&1 >/dev/null) || : #Saving the process here [ -z "$out" ] && die "nvm_source with invalid parameter should error out" #nvm_source should always return NVM_SOURCE no matter the parameters export NVM_SOURCE="my_location" out=$(nvm_source) [ "_$out" = "_my_location" ] || die "nvm_source without arguments should have returned \$NVM_SOURCE. Got \"$out\"" out=$(nvm_source "git") [ "_$out" = "_my_location" ] || die "nvm_source git should have returned \$NVM_SOURCE. Got \"$out\"" out=$(nvm_source "script") [ "_$out" = "_my_location" ] || die "nvm_source script should have returned \$NVM_SOURCE. Got \"$out\"" out=$(nvm_source "anything") [ "_$out" = "_my_location" ] || die "nvm_source script should have returned \$NVM_SOURCE. Got \"$out\"" cleanup