From 44e7862d9760ce99ba0c31a135884c9a50a558cb Mon Sep 17 00:00:00 2001 From: Brock Angelo Date: Fri, 14 Dec 2018 20:02:45 -0600 Subject: [PATCH] fixes #38 --- node-reinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-reinstall b/node-reinstall index 4a0d8fd..0f09a25 100755 --- a/node-reinstall +++ b/node-reinstall @@ -105,7 +105,7 @@ confirm () sudo -v # if node is installed, get the installed version -INSTALLED_NODE_VERSION=$(node --version 2> /dev/null) +INSTALLED_NODE_VERSION=$(node --version 2&1> /dev/null) if [[ ! -z $INSTALLED_NODE_VERSION ]]; then echo "Found a version of Node.js that is already installed." echo "If you continue now, we will re-install Node.js version $INSTALLED_NODE_VERSION"