From 9aba23aec21dc191531ddd468283c1b76daf4043 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 15 Jan 2015 14:50:53 -0700 Subject: [PATCH] show user that node is already installed --- setup-ubuntu.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setup-ubuntu.bash b/setup-ubuntu.bash index 7f9bb10..8f9f571 100644 --- a/setup-ubuntu.bash +++ b/setup-ubuntu.bash @@ -26,11 +26,15 @@ fi # iojs if [ -n "$(which node | grep node 2>/dev/null)" ]; then if [ "$(node -v 2>/dev/null)" != "$(iojs -v 2>/dev/null)" ]; then - echo "You have node.js installed. Backing up $(which node) as $(which node).joyent" + clear + echo "HEY, LISTEN!" + echo "" + echo "You have node.js installed. Backing up $(which node) as $(which node).$(node -v)" echo "(you can move it back after the install if you want separate node.js and io.js installations)" echo "" - echo sudo mv "$(which node)" "$(which node).joyent" - sudo mv "$(which node)" "$(which node).joyent" + sleep 3 + echo sudo mv "$(which node)" "$(which node).$(node -v)" + sudo mv "$(which node)" "$(which node).$(node -v)" fi if [ "${IOJS_VER}" == "$(iojs -v 2>/dev/null)" ]; then