Skip to content
Myr

nvm_has_system_node

This file

Path

test/fast/Unit tests/nvm_has_system_node

28 lines · 363 bytes

Last changed by

[Tests] set `$_` before sourcing `nvm.sh` in fast testsJordan Harbandbefore adoptionc451e7a

History of this file

Take it

The walk stopped after 200 commits: lines older than 5c12680 point at it.

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 1–2why, one step back
1#!/bin/sh
2

[Tests] set `$_` before sourcing `nvm.sh` in fast testsJordan Harbandbefore adoptionc451e7a

line 3why, one step back
3: nvm.sh

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 4–28why, one step back
4\. ../../../nvm.sh
5\. ../../common.sh67cleanup () {8 rm -rf "${NVM_DIR}/v0.1.2"9}10die () { echo "$@" ; exit 1; }1112make_fake_node v0.1.21314nvm use 0.1.21516if command -v node; then17 nvm_has_system_node18else19 ! nvm_has_system_node20fi2122nvm deactivate /dev/null 2>&12324if command -v node; then25 nvm_has_system_node26else27 ! nvm_has_system_node28fi