From 3dd3956a88857317e5d0e258a4e29bf38eaff62c Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:33:54 -0700 Subject: [PATCH] bastille: Export only if env not set --- usr/local/bin/bastille | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr/local/bin/bastille b/usr/local/bin/bastille index 7024050f..ce42753a 100755 --- a/usr/local/bin/bastille +++ b/usr/local/bin/bastille @@ -116,7 +116,7 @@ Available Commands: Use "bastille -v|--version" for version information. Use "bastille command -h|--help" for more information about a command. -Use "bastille -c|--config command" to slecify a non-defaukt config file. +Use "bastille -c|--config command" to specify a non-defaukt config file. EOF exit 1 @@ -126,8 +126,10 @@ bastille_conf_check bastille_perms_check BASTILLE_VERSION="0.13.20250126" -BASTILLE_CONFIG=/usr/local/etc/bastille/bastille.conf -export BASTILLE_CONFIG +if [ -z "${BASTILLE_CONFIG}" ]; then + BASTILLE_CONFIG=/usr/local/etc/bastille/bastille.conf + export BASTILLE_CONFIG +fi # Handle options while [ "$#" -gt 0 ]; do