'What happens If I execute the nvm install script twice in a row?

I executed the nvm install script twice in a row by accident in the macOS terminal. Does it install the updates only or the total packages again?

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

Thanks!

nvm


Solution 1:[1]

The script downloads the total packages again

{ # this ensures the entire script is downloaded #
....
} # this ensures the entire script is downloaded #

(The whole script is based around these brackets, which means that the script downloads it again.)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AZ Software