20 lines
No EOL
390 B
Bash
20 lines
No EOL
390 B
Bash
#!/bin/bash
|
|
|
|
# this is the main script template
|
|
|
|
set -eo pipefail
|
|
|
|
if [[ -n "${BASHD_DEBUG}" ]]; then # a inevitability that this will be used
|
|
set -x
|
|
fi
|
|
|
|
trap cleanup EXIT # A little more robust cleanup
|
|
|
|
cleanup() {
|
|
# We can clean up any temp files or what nots, but for now a place holder
|
|
true
|
|
}
|
|
|
|
source ./config_json.bash # can be json or ini, I preffer json
|
|
|
|
# Code goes here |