From b04cf65a5323f127f4e0c9a3dc89232bdfbf6614 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 17 Feb 2018 04:18:28 -0800 Subject: [PATCH] install: always stop at first error --- hledger-install/hledger-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hledger-install/hledger-install.sh b/hledger-install/hledger-install.sh index 195607692..aec68cfcd 100755 --- a/hledger-install/hledger-install.sh +++ b/hledger-install/hledger-install.sh @@ -1,10 +1,12 @@ -#!/bin/bash -e +#!/bin/bash # Easy hledger installation script for POSIX systems. # Uses cabal if installed and stack is not, # or stack, which it will install if needed (or if --force-install-stack is used). # Requires bash and some other POSIX tools. # This is based on get-stack.sh which is copyright (c) 2015-2017, Stack contributors. +set -e + usage() { cat <