From 950342f54ea51576a131875e55010ef9530bed8b Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Mon, 17 Feb 2020 09:41:33 -0700 Subject: [PATCH] properly quoting variables --- usr/local/share/bastille/create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index e5014309..c945b546 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -231,12 +231,12 @@ create_jail() { if [ ! -z "${bastille_jail_loopback}" ] && [ -z "${bastille_jail_external}" ]; then local bastille_jail_conf_interface=${bastille_jail_interface} fi - if [ ! -z ${INTERFACE} ]; then + if [ -n "${INTERFACE}" ]; then local bastille_jail_conf_interface=${INTERFACE} fi ## generate the jail configuration file - if [ -n ${VNET_JAIL} ]; then + if [ -n "${VNET_JAIL}" ]; then generate_vnet_jail_conf else generate_jail_conf