only remove symlink if it exists

main
Buddy Sandidge 5 years ago
parent b4d20626f9
commit 5557b07b6f

@ -47,7 +47,7 @@ else
fi
cd ${NODE_PREFIX_DIR}
sudo unlink current
[[ -s current ]] && sudo unlink current
sudo ln --symbolic ${NODE_VERSION} current
echo current version set to ${NODE_VERSION}
cd ${BIN_DIR}

Loading…
Cancel
Save