From d050fdc854f46390f29b3c5cd3e6bd5d41bf9603 Mon Sep 17 00:00:00 2001 From: Tyler True <944067+sirocyl@users.noreply.github.com> Date: Sat, 26 Oct 2019 23:24:50 -0400 Subject: [PATCH] Explicitly define the shell (bash) and its env. This makes the "command: command not found" error no longer occur on systems where the default shell is not `bash`, or does not support the `bash` builtins. Additionally, a sane environment is set for safer shell command use and scripting. The environment settings for `bash` here do the following: - Terminate on errors, including signal `ERR` traps. (-e, -E) - Ensure that shell variables are set before use. (-u) - Print the shell command, and arguments, as they're run. (-x) - Fail on errors in any command in a pipeline. (-o pipefail) --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 78d28517..e2cf45f6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause +SHELL=bash -Eeuxo pipefail VERSION=$(shell git describe --abbrev=8 --dirty 2>/dev/null || echo v0.12.1) WADS=wads ASCIIDOC=asciidoc