Add double quotes to prevent globbing/word splitting, general code consistency improvements
This commit is contained in:
@@ -68,7 +68,7 @@ if [ -z "${JAIL_IP}" -o "${JAIL_IP}" = "-" ]; then
|
||||
fi
|
||||
|
||||
# Check rdr-anchor is setup in pf.conf
|
||||
if !(pfctl -sn | grep rdr-anchor | grep 'rdr/\*' >/dev/null); then
|
||||
if ! (pfctl -sn | grep rdr-anchor | grep 'rdr/\*' >/dev/null); then
|
||||
echo -e "${COLOR_RED}rdr-anchor not found in pf.conf${COLOR_RESET}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user