From 4838bcaf28634c3b20bc2e8b0b0a5359275f3119 Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Thu, 6 Dec 2018 19:37:00 +0000 Subject: [PATCH] Fix install scripts: echo commands and bail on errors. --- prism/etc/scripts/prism-install-rhel | 3 +++ prism/etc/scripts/prism-install-ubuntu | 3 +++ 2 files changed, 6 insertions(+) diff --git a/prism/etc/scripts/prism-install-rhel b/prism/etc/scripts/prism-install-rhel index ca68ca38..969e3965 100755 --- a/prism/etc/scripts/prism-install-rhel +++ b/prism/etc/scripts/prism-install-rhel @@ -2,6 +2,9 @@ # Script for installation of PRISM on a clean install of RHEL/CentOS/etc Linux. +set -e # Abort if one of the commands fail +set -x # Print commands as they are executed + # Install dependencies: make/gcc/Java sudo yum update sudo yum -y install git gcc gcc-c++ java-1.8.0-openjdk-devel diff --git a/prism/etc/scripts/prism-install-ubuntu b/prism/etc/scripts/prism-install-ubuntu index 8719bc96..d13138a1 100755 --- a/prism/etc/scripts/prism-install-ubuntu +++ b/prism/etc/scripts/prism-install-ubuntu @@ -2,6 +2,9 @@ # Script for installation of PRISM on a clean install of Ubuntu +set -e # Abort if one of the commands fail +set -x # Print commands as they are executed + # Install dependencies: make/gcc/Java sudo apt-get update sudo apt -y install make gcc g++ default-jdk