mirror of
https://github.com/ivuorinen/f2b.git
synced 2026-02-15 19:49:50 +00:00
fix: correct jail check condition (#6)
This commit is contained in:
2
f2b
2
f2b
@@ -205,7 +205,7 @@ f2b_poll_jail_log_entries() {
|
|||||||
f2b_jail_exists() {
|
f2b_jail_exists() {
|
||||||
local JAIL=${1:-""}
|
local JAIL=${1:-""}
|
||||||
|
|
||||||
if [ -z "$JAIL" ] && [ "$JAIL" != "" ]; then
|
if [ -z "$JAIL" ]; then
|
||||||
echo "[f2b_jail_exists] Error: Please provide a jail to check if it exists."
|
echo "[f2b_jail_exists] Error: Please provide a jail to check if it exists."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user