1
0
mirror of https://github.com/nvm-sh/nvm.git synced 2026-02-13 13:36:12 +08:00

[Fix] ensure this variable is bound

Fixes #2926
This commit is contained in:
Jordan Harband
2022-10-26 10:12:06 -07:00
parent 924d77cc90
commit 1f4bb91ae6

1
nvm.sh
View File

@@ -1693,6 +1693,7 @@ nvm_print_versions() {
local DEFAULT_COLOR
local LTS_COLOR
local NVM_HAS_COLORS
NVM_HAS_COLORS=0
INSTALLED_COLOR=$(nvm_get_colors 1)
SYSTEM_COLOR=$(nvm_get_colors 2)