bastille: Export only if env not set

This commit is contained in:
tschettervictor
2025-03-01 21:33:54 -07:00
committed by GitHub
parent efcfe7c2b0
commit 3dd3956a88

View File

@@ -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