From 150310bf67b824be422d13fe36b5d68e8fbd1d99 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Mon, 17 Jun 2019 11:26:54 +1000 Subject: [PATCH] Exit script/setup if node is not found This mirrors what the script already does if ruby is not found --- script/setup | 1 + 1 file changed, 1 insertion(+) diff --git a/script/setup b/script/setup index 5baa0e862b..65f46d7949 100755 --- a/script/setup +++ b/script/setup @@ -29,6 +29,7 @@ fi # Check node version if ! node --version | grep $NODE_VERSION > /dev/null; then printf "${RED}Open Food Network requires node ${NODE_VERSION}${NO_COLOR}. Have a look at: https://github.com/nodenv/nodenv\n" + exit 1 fi # Set up Ruby dependencies via Bundler