From 649987a33b5c582cedc985d2a8db14a270daba03 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Fri, 6 Jul 2018 13:07:29 -0400 Subject: [PATCH] Add file with basic command all scripts should run --- script/include/global_header.inc.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 script/include/global_header.inc.sh diff --git a/script/include/global_header.inc.sh b/script/include/global_header.inc.sh new file mode 100755 index 00000000..67a048b2 --- /dev/null +++ b/script/include/global_header.inc.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# scriptz/global_header.inc: Any basic things that should be executed at the +# beginning of any and every script + +# If any command fails, immediately exit the script +set -e + +# Ensure the working directory is the app root directory +cd "$(dirname "${0}")/.." + +# Source all function definition files +source ./script/include/*_functions.inc.sh