blob: 47ab31aacea4f5a8aaf312b74c63990793fb3db9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
_atrocity_init_file="${BASH_SOURCE[0]}"
if [ "$(basename -- "$_atrocity_init_file")" != "load.sh" ] || [ "${#BASH_SOURCE[@]}" -lt 2 ]; then
echo "ERROR: Atrocity must be sourced. If you have atrocity in a sub module, use \`source \"\$(dirname -- \"\$0\")\"/atrocity/load.sh\`"
exit 1
fi
_atrocity_base="$(dirname -- "$(readlink -f -- "$_atrocity_init_file")")"
source "$_atrocity_base"/logger.sh
source "$_atrocity_base"/events.sh
source "$_atrocity_base"/connect.sh
source "$_atrocity_base"/rest.sh
atrocity_debug "Loaded atrocity from $_atrocity_base"
_atrocity_prepare
|