node.sh
Bugfix if github.com don’t respond.
This commit is contained in:
@@ -87,6 +87,7 @@ if [ -f "$NVM_DIR/nvm.sh" ]; then
|
||||
echo -e "\n${underline}🌿 nvm install is:${reset} $NVM_DIR/nvm.sh"
|
||||
echo " - nvm $nvm_v is installed from https://github.com/nvm-sh/nvm"
|
||||
|
||||
if [ -n "$version_nvm" ]; then
|
||||
if [ "$nvm_v" != "$version_nvm" ]; then
|
||||
echo "Current nvm version on GitHub: $version_nvm"
|
||||
echo "Current nvm installed version: $nvm_v"
|
||||
@@ -103,6 +104,7 @@ if [ -f "$NVM_DIR/nvm.sh" ]; then
|
||||
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
node_install=$(nvm list "$ls_color")
|
||||
echo -e "\n${underline}🌿 node.js${reset} (installed versions): \n$node_install"
|
||||
|
||||
Reference in New Issue
Block a user