Skip to content

Commit

Permalink
build-all.sh: Handle issues with current fnm version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 16, 2024
1 parent f0be86d commit b3543ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3543ef

Please sign in to comment.