From 04ec7658e1d0a3bb2d0764d6f8e807b7ca50dd9e Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Tue, 9 Aug 2011 10:58:43 +0100 Subject: [PATCH] remove node_modules folder when the installation fails, prevents from broken dependencies --- bin/installDeps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/installDeps.sh b/bin/installDeps.sh index 9ed340e4..db46dbfa 100755 --- a/bin/installDeps.sh +++ b/bin/installDeps.sh @@ -33,7 +33,7 @@ if [ ! -f "settings.json" ]; then fi echo "Ensure that all dependencies are up to date..." -npm install || exit 1 +npm install || rm -rf node_modules; exit 1 echo "Ensure jQuery is downloaded and up to date..." DOWNLOAD_JQUERY="true"