Skip to content
Myr

[Tests] add `nvm_grep` to install script, fix tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by nmarghetti · committed by Jordan Harband · parent 436cda2 · Browse files · 2 files+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−1 removed

  • tests:+2 added−0 removed
  • other:+5 added−1 removed

2 files+7 added−1 removed

modified:test/install_script/nvm_install_with_node_version+2 added
4 unmodified lines
5# Needed to avoid to checkout the repo to the latest nvm version, losing the commits of the current PR6unset NVM_DIR7NODE_VERSION=8 \. ../../install.sh89. "${NVM_DIR}/nvm.sh"1011# nvm installed node 812nvm ls 8 > /dev/null 2>&1 || die "nvm didn't install node 8"
modified:install.sh+5 added-1 removed
4 unmodified lines
5nvm_has() {6 type "$1" > /dev/null 2>&17}89nvm_grep() {10 GREP_OPTIONS='' command grep "$@"11}1213nvm_default_install_dir() {14 [ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm"15}16
409 unmodified lines
426nvm_reset() {427 unset -f nvm_has nvm_install_dir nvm_latest_version nvm_profile_is_bash_or_zsh \428 nvm_source nvm_node_version nvm_download install_nvm_from_git nvm_install_node \429 install_nvm_as_script nvm_try_profile nvm_detect_profile nvm_check_global_modules \426 nvm_do_install nvm_reset nvm_default_install_dir430 nvm_do_install nvm_reset nvm_default_install_dir nvm_grep431}432433[ "_$NVM_ENV" = "_testing" ] || nvm_do_install434
1 unmodified line