bastille: Load config only from commons.sh

Since all files source common.sh anyway, we don't want to source the config twice.
This commit is contained in:
tschettervictor
2025-03-02 11:23:35 -07:00
parent 4a1fb4bf89
commit 454288b2b1
37 changed files with 12 additions and 48 deletions

View File

@@ -30,6 +30,11 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Load config. This only has to be done here
# becasue all commands load this file
# shellcheck disable=SC1090
. ${BASTILLE_CONFIG}
COLOR_RED=
COLOR_GREEN=
COLOR_YELLOW=
@@ -43,14 +48,6 @@ bastille_root_check() {
fi
}
load_config() {
# shellcheck disable=SC1090
. ${BASTILLE_CONFIG}
}
# Load configuration file
load_config
enable_color() {
. /usr/local/share/bastille/colors.pre.sh
}