wisski-cloud-distillery/distillery/lib/lib.sh
Tom Wiesing 76ef5d8e68
Switch to using Docker
This commit refactors all code in this project to make use of docker.
This has not yet been documented properly.
2020-06-26 12:54:47 +02:00

22 lines
728 B
Bash

#!/bin/bash
set -e
# This file will load all the library functions needed by the various scripts.
# It should be 'source'd only, if it is not we bail out here.
if [[ "$0" = "$BASH_SOURCE" ]]; then
echo "This file should not be executed directly, it should be 'source'd only. "
exit 1;
fi
# Set variables for the script_dir and the lib_dir
SCRIPT_DIR="$(pwd)"
LIB_DIR="$SCRIPT_DIR/lib"
# Next, we load a bunch of utility functions stored in lib/lib_<number>_<system>.sh
# These contain functionality used in the various scripts.
source "$LIB_DIR/00_init.sh";
source "$LIB_DIR/10_config.sh";
source "$LIB_DIR/20_sql.sh";
source "$LIB_DIR/30_slug.sh";
source "$LIB_DIR/40_templates.sh";
source "$LIB_DIR/50_utils.sh";