Skip to content
Snippets Groups Projects
Verified Commit cab67d36 authored by David Beniamine's avatar David Beniamine
Browse files

Fix bad test

parent f6d53c23
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,8 @@ fi
ip=$1
# Trying to remove from all jails
fail2ban-client unban $ip
if [ $? -eq 1 ]; then
ret=$(fail2ban-client unban $ip)
if [ $ret -eq 1 ]; then
echo "$ip unbanned"
else
echo "$ip was not banned"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment