properly quoting variables

This commit is contained in:
Christer Edwards
2020-02-17 09:41:33 -07:00
parent f271547e23
commit 950342f54e

View File

@@ -231,12 +231,12 @@ create_jail() {
if [ ! -z "${bastille_jail_loopback}" ] && [ -z "${bastille_jail_external}" ]; then if [ ! -z "${bastille_jail_loopback}" ] && [ -z "${bastille_jail_external}" ]; then
local bastille_jail_conf_interface=${bastille_jail_interface} local bastille_jail_conf_interface=${bastille_jail_interface}
fi fi
if [ ! -z ${INTERFACE} ]; then if [ -n "${INTERFACE}" ]; then
local bastille_jail_conf_interface=${INTERFACE} local bastille_jail_conf_interface=${INTERFACE}
fi fi
## generate the jail configuration file ## generate the jail configuration file
if [ -n ${VNET_JAIL} ]; then if [ -n "${VNET_JAIL}" ]; then
generate_vnet_jail_conf generate_vnet_jail_conf
else else
generate_jail_conf generate_jail_conf