From 017536123a5d334759ed54aff610b22a8d6c8254 Mon Sep 17 00:00:00 2001 From: Ze Libertine Gamer Date: Thu, 3 Nov 2016 07:02:05 -0700 Subject: Improve error handling in shell scripts --- scripts/updater.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/updater.sh') diff --git a/scripts/updater.sh b/scripts/updater.sh index 4197246..cdf78a0 100755 --- a/scripts/updater.sh +++ b/scripts/updater.sh @@ -4,6 +4,11 @@ # TODO: Refactor into multiple functions to improve error-handling. +# Set options for improved robustness +set -o errexit +set -o pipefail +set -o nounset + # Color escapes we'll use norm="" BG="" # Green -- cgit v1.2.3-54-g00ecf knr
Category-0 solutions to The C Programming Language, 2nd Editionzlg
aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-01_hello-world.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines