From 1dce063900493b186862867af71dd950bcc6d5fa Mon Sep 17 00:00:00 2001 From: ryenus Date: Mon, 15 Jul 2024 14:45:57 +0800 Subject: [PATCH] avoid inline initialization for ksh compatibility Co-authored-by: Jordan Harband --- nvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index be1815c..ddddc6f 100755 --- a/nvm.sh +++ b/nvm.sh @@ -4061,7 +4061,8 @@ nvm() { ;; "ls-remote" | "list-remote") local NVM_LTS - local NVM_MIN="${NVM_MIN-}" + local NVM_MIN + NVM_MIN="${NVM_MIN-}" local PATTERN local NVM_NO_COLORS