From a3f770674bc325f82041e6e9bf2ecbd58ece153f Mon Sep 17 00:00:00 2001 From: mmterpstra Date: Mon, 20 Jun 2016 14:36:05 +0200 Subject: [PATCH] Add missing dependancy and exit on error Add missing dependancy (`node-express` or `express`) Exit on error when installing: `set -e` --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 10fba7a..be5d030 100644 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e ############################################ echo "Welcome to PiCAST 3! \n\n\n" @@ -9,7 +10,7 @@ echo "Performing any upgrades (just in case)... \n" sudo apt-get upgrade echo "Ok, lets get to the requirements, bare with me... \n" -sudo apt-get install python-dev python-pip nodejs npm youtube-dl lame mpg321 mplayer livestreamer git -y +sudo apt-get install python-dev python-pip nodejs node-express npm youtube-dl lame mpg321 mplayer livestreamer git -y echo "I'm too lazy to check if all went well, so lets move on..." sleep 2