Add file with basic command all scripts should run

This commit is contained in:
Devon Mackay 2018-07-06 13:07:29 -04:00
parent e8e8a4f1b2
commit 649987a33b

View File

@ -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