From 5557b07b6f7891de0708c8d2247e1ee390a932ba Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sat, 14 Mar 2020 17:13:22 -0700 Subject: [PATCH] only remove symlink if it exists --- bin/install-node-system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-node-system b/bin/install-node-system index 7ef78c5..54c7c54 100755 --- a/bin/install-node-system +++ b/bin/install-node-system @@ -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}