Add file with basic command all scripts should run
This commit is contained in:
parent
e8e8a4f1b2
commit
649987a33b
13
script/include/global_header.inc.sh
Executable file
13
script/include/global_header.inc.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user