From b3543efb597644ba41eeb31cdcda21708344f4c3 Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Tue, 16 Jan 2024 11:30:15 +0100 Subject: [PATCH] build-all.sh: Handle issues with current fnm version --- build/build-all.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/build-all.sh b/build/build-all.sh index 8a4a388c..6ec3cc4e 100755 --- a/build/build-all.sh +++ b/build/build-all.sh @@ -41,7 +41,9 @@ function cleanup { test -e build/build-info.backup.json && rm build/build-info.backup.json # Return to previous Node.js version - fnm use $FNM_VERSION + if [ "$FNM_VERSION" != "" ] && [ "$FNM_VERSION" != "none" ]; then + fnm use "$FNM_VERSION" + fi # Restore previous node_modules rm -r ./node_modules