Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/front-web/build/assets/resources/install_script.zip
Назад
PK 5n[љU1� � nvm_check_global_modulesnu ȯ�� #!/bin/sh cleanup () { rm -rf "$npm_config_prefix/lib" >/dev/null 2>&1 unset npm_config_prefix rm -f npm PATH="$ORIGINAL_PATH" unset -f setup cleanup die unset message ORIGINAL_PATH } die () { echo "$@" ; cleanup ; exit 1; } NVM_ENV=testing \. ../../install.sh setup () { ORIGINAL_PATH="$PATH" npm_config_prefix="$(pwd)" export npm_config_prefix mkdir -p "$npm_config_prefix/lib" } setup npm install -g nop >/dev/null || die 'nvm_check_global_modules cannot be tested because `npm` cannot install the `nop` package' message=$(nvm_check_global_modules) [ ! -z "$message" ] || die "nvm_check_global_modules should have printed a notice when npm had global modules installed" npm uninstall -g nop >/dev/null message=$(nvm_check_global_modules) [ -z "$message" ] || die "nvm_check_global_modules should not have printed a notice when npm had no global modules installed" # Faking an installation of npm mkdir -p "$npm_config_prefix/lib/node_modules/npm" cat <<'JSON' >"$npm_config_prefix/lib/node_modules/npm/package.json" { "name": "npm", "version": "0.0.1fake" } JSON message=$(nvm_check_global_modules) [ -z "$message" ] || die "nvm_check_global_modules should have not printed a notice when npm had only itself installed as a global module" # Faking the absence of npm PATH=".:$PATH" touch npm chmod +x npm message=$(nvm_check_global_modules) [ -z "$message" ] || die "nvm_check_global_modules should have not printed a notice when npm was unavailable" cleanup PK 5n[� ��^ ^ nvm_detect_profilenu ȯ�� #!/bin/sh setup () { HOME="." NVM_ENV=testing \. ../../install.sh touch ".bashrc" touch ".bash_profile" touch ".zshrc" touch ".profile" touch "test_profile" } cleanup () { unset HOME unset NVM_ENV unset NVM_DETECT_PROFILE unset BASH_VERSION unset ZSH_VERSION unset -f setup cleanup die rm -f ".bashrc" ".bash_profile" ".zshrc" ".profile" "test_profile" > "/dev/null" 2>&1 } die () { echo "$@" '$NVM_DETECT_PROFILE:' "$NVM_DETECT_PROFILE"; cleanup; exit 1; } setup # # Confirm profile detection via $SHELL works and that $PROFILE overrides profile detection # # setting $PROFILE to /dev/null should return no detected profile NVM_DETECT_PROFILE="$(PROFILE='/dev/null'; nvm_detect_profile)" if [ -n "$NVM_DETECT_PROFILE" ]; then die "nvm_detect_profile still detected a profile even though PROFILE=/dev/null" fi # .bashrc should be detected for bash NVM_DETECT_PROFILE="$(BASH_VERSION="1"; unset PROFILE; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then die "nvm_detect_profile didn't pick \$HOME/.bashrc for bash" fi # $PROFILE should override .bashrc profile detection NVM_DETECT_PROFILE="$(SHELL="/bin/bash"; PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then die "nvm_detect_profile ignored \$PROFILE" fi # .zshrc should be detected for zsh NVM_DETECT_PROFILE="$(ZSH_VERSION="1"; unset PROFILE; unset BASH_VERSION; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then die "nvm_detect_profile didn't pick \$HOME/.zshrc for zsh" fi # $PROFILE should override .zshrc profile detection NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then die "nvm_detect_profile ignored \$PROFILE" fi # # Confirm $PROFILE is only returned when it points to a valid file # # $PROFILE is a valid file NVM_DETECT_PROFILE="$(PROFILE="test_profile"; unset ZSH_VERSION; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then die "nvm_detect_profile didn't pick \$PROFILE when it was a valid file" fi # $PROFILE is not a valid file rm "test_profile" NVM_DETECT_PROFILE="$(PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" = "test_profile" ]; then die "nvm_detect_profile picked \$PROFILE when it was an invalid file" fi # # When profile detection fails via both $PROFILE and $SHELL, profile detection should select based on the existence of # one of the following files is the following order: .profile, .bashrc, .bash_profile, .zshrc and # return an empty value if everything fails # # It should favor .profile if file exists NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.profile" ]; then die "nvm_detect_profile should have selected .profile" fi # Otherwise, it should favor .bashrc if file exists rm ".profile" NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then die "nvm_detect_profile should have selected .bashrc" fi # Otherwise, it should favor .bash_profile if file exists rm ".bashrc" NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.bash_profile" ]; then die "nvm_detect_profile should have selected .bash_profile" fi # Otherwise, it should favor .zshrc if file exists rm ".bash_profile" NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then die "nvm_detect_profile should have selected .zshrc" fi # It should be empty if none is found rm ".zshrc" NVM_DETECT_PROFILE="$(unset BASH_VERSION; unset ZSH_VERSION; nvm_detect_profile)" if [ ! -z "$NVM_DETECT_PROFILE" ]; then die "nvm_detect_profile should have returned an empty value" fi cleanup PK 5n[��lP� � nvm_do_installnu ȯ�� #!/bin/sh die () { echo "$@" ; exit 1; } NVM_ENV=testing \. ../../install.sh #nvm_do_install is available type nvm_do_install > /dev/null 2>&1 || die 'nvm_do_install is not available' PK 5n[�ڗ� � nvm_install_dirnu ȯ�� #!/bin/sh cleanup () { unset -f die cleanup unset install_dir } die () { echo "$@" ; cleanup ; exit 1; } NVM_ENV=testing \. ../../install.sh HOME="__home__" # NVM_DIR is set NVM_DIR="some_dir" install_dir=$(nvm_install_dir) [ "_$install_dir" = "_$NVM_DIR" ] || die "nvm_install_dir should use \$NVM_DIR if it exists. Current output: $install_dir" unset NVM_DIR # NVM_DIR is not set install_dir=$(nvm_install_dir) fallback_dir="" [ ! -z "$XDG_CONFIG_HOME" ] && fallback_dir="$XDG_CONFIG_HOME/nvm" || fallback_dir="$HOME/.nvm" [ "_$install_dir" = "_$fallback_dir" ] || die "nvm_install_dir should default to \$XDG_CONFIG_DIR/.nvm. Current output: $install_dir" cleanup PK 5n[��KE E nvm_install_with_aliased_dotnu ȯ�� #!/bin/sh setup () { shopt -s expand_aliases alias .=':' NVM_ENV=testing \. ../../install.sh > /dev/null } cleanup () { unset -f setup cleanup die unalias . shopt -u expand_aliases } die () { echo "$@"; exit 1; } setup nvm_do_install > /dev/null 2>&1 command -v nvm || die 'nvm could not be loaded' cleanup PK 5n[�c�z� � nvm_install_with_node_versionnu ȯ�� #!/bin/sh die () { echo "$@" ; exit 1; } NODE_VERSION=8 \. ../../install.sh # nvm installed node 8 nvm ls 8 > /dev/null 2>&1 || die "nvm didn't install node 8" PK 5n[���� � nvm_profile_is_bash_or_zshnu ȯ�� #!/bin/sh die () { echo "$@" ; exit 1; } NVM_ENV=testing \. ../../install.sh #nvm_profile_is_bash_or_zsh is available type nvm_profile_is_bash_or_zsh > /dev/null 2>&1 || die 'nvm_profile_is_bash_or_zsh is not available' nvm_profile_is_bash_or_zsh "/home/nvm/.bashrc" || die '/home/nvm/.bashrc is bash profile' nvm_profile_is_bash_or_zsh "/home/nvm/.bash_profile" || die '/home/nvm/.bash_profile is bash profile' nvm_profile_is_bash_or_zsh "/home/nvm/.zshrc" || die '/home/nvm/.zshrc is zsh profile' if nvm_profile_is_bash_or_zsh "/home/nvm/.bash"; then die '/home/nvm/.bash is not bash nor zsh profile'; fi if nvm_profile_is_bash_or_zsh "/home/nvm/.zsh" ; then die '/home/nvm/.zsh is not bash nor zsh profile'; fi PK 5n[�,}�` ` nvm_resetnu ȯ�� #!/bin/sh cleanup () { unset -f safe_type die cleanup } die () { echo "$@" ; cleanup ; exit 1; } safe_type() { type "$1" } # precondition: the names should be unset ! safe_type nvm_do_install || die 'nvm_do_install is still available' ! safe_type nvm_has || die 'nvm_has is still available' ! safe_type nvm_download || die 'nvm_download is still available' ! safe_type install_nvm_as_script || die 'install_nvm_as_script is still available' ! safe_type install_nvm_from_git || die 'install_nvm_from_git is still available' ! safe_type nvm_reset || die 'nvm_reset is still available' ! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available' NVM_ENV=testing \. ../../install.sh # Check nvm_reset exists safe_type nvm_reset || die 'nvm_reset is not available' # Apply nvm_reset nvm_reset || die 'nvm_reset failed' # The names should be unset ! safe_type nvm_do_install || die 'nvm_do_install is still available' ! safe_type nvm_has || die 'nvm_has is still available' ! safe_type nvm_download || die 'nvm_download is still available' ! safe_type install_nvm_as_script || die 'install_nvm_as_script is still available' ! safe_type install_nvm_from_git || die 'install_nvm_from_git is still available' ! safe_type nvm_reset || die 'nvm_reset is still available' ! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available' cleanup PK 5n[��[ [ nvm_sourcenu ȯ�� #!/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 echo $(nvm_source) | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo" # nvm_source with git parameter returns the location of the nvm repo echo $(nvm_source "git") | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo" # nvm_source with script parameter returns the location of nvm.sh echo $(nvm_source "script") | grep "nvm.sh$" > /dev/null || die "nvm_source \"script\" should return the location of nvm.sh" # nvm_source with script-nvm-exec parameter returns the location of nvm-exec echo $(nvm_source "script-nvm-exec") | grep "nvm-exec$" > /dev/null || die "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 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 PK 5n[љU1� � nvm_check_global_modulesnu ȯ�� PK 5n[� ��^ ^ ! nvm_detect_profilenu ȯ�� PK 5n[��lP� � � nvm_do_installnu ȯ�� PK 5n[�ڗ� � � nvm_install_dirnu ȯ�� PK 5n[��KE E � nvm_install_with_aliased_dotnu ȯ�� PK 5n[�c�z� � / nvm_install_with_node_versionnu ȯ�� PK 5n[���� � nvm_profile_is_bash_or_zshnu ȯ�� PK 5n[�,}�` ` = nvm_resetnu ȯ�� PK 5n[��[ [ �$ nvm_sourcenu ȯ�� PK � k,
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка