From 211a268c36ecad5db055f260e43ce6133748513c Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 8 Feb 2021 05:31:16 -0400 Subject: [PATCH] Use which since shell built-in and search for paths --- usr/local/share/bastille/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/stop.sh b/usr/local/share/bastille/stop.sh index b5ce8eea..60a33e02 100644 --- a/usr/local/share/bastille/stop.sh +++ b/usr/local/share/bastille/stop.sh @@ -57,7 +57,7 @@ for _jail in ${JAILS}; do fi # Check if pfctl is present - if test -f /sbin/pfctl; then + if which -s pfctl; then if [ "$(bastille rdr ${_jail} list)" ]; then bastille rdr ${_jail} clear fi