mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 09:10:15 +01:00
Use which since shell built-in and search for paths
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user