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