From bb63232f55d6e86e1b3466eed077643422fb1703 Mon Sep 17 00:00:00 2001 From: Nicholas Hubbard Date: Mon, 4 Apr 2016 13:57:09 -0400 Subject: [PATCH] Update the installer to allow condensed installation. Condensed installation is where the user Git Clones the repo and runs the installer there. --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d6a05e3b..00473f92 100644 --- a/install.sh +++ b/install.sh @@ -60,8 +60,10 @@ rm -rf node* # Run Node checks to make sure Node works properly. curl -sL https://deb.nodesource.com/test | bash - npm config set loglevel info -wget https://github.com/nhubbard/MagicMirror/archive/v2-beta.zip -unzip v2-beta.zip -cd MagicMirror-2-beta +if [ ! -f package.json ]; then + wget https://github.com/nhubbard/MagicMirror/archive/v2-beta.zip + unzip v2-beta.zip + cd MagicMirror-2-beta +fi npm install echo "We're ready! Run `npm start` from the MagicMirror-2-beta directory (not over SSH) and enjoy MagicMirror2!"