mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 16:51:00 +01:00
bastille: Export only if env not set
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user