Add "" around variables in test(1) cases to prevent errors when a variable is unset

This commit is contained in:
Lars Engels
2019-12-11 20:35:05 +01:00
parent 3f7573825d
commit 5b11f81a1b
5 changed files with 12 additions and 12 deletions

View File

@@ -68,7 +68,7 @@ for _jail in ${JAILS}; do
jail -f "${bastille_jailsdir}/${_jail}/jail.conf" -c ${_jail}
## add ip4.addr to firewall table:jails
if [ ! -z ${bastille_jail_loopback} ]; then
if [ ! -z "${bastille_jail_loopback}" ]; then
pfctl -q -t jails -T add $(jls -j ${_jail} ip4.addr)
fi
fi