Use which since shell built-in and search for paths

This commit is contained in:
Jose
2021-02-08 05:31:16 -04:00
parent 75ed5b3ce4
commit 211a268c36

View File

@@ -57,7 +57,7 @@ for _jail in ${JAILS}; do
fi fi
# Check if pfctl is present # Check if pfctl is present
if test -f /sbin/pfctl; then if which -s pfctl; then
if [ "$(bastille rdr ${_jail} list)" ]; then if [ "$(bastille rdr ${_jail} list)" ]; then
bastille rdr ${_jail} clear bastille rdr ${_jail} clear
fi fi