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

Fix bad test

parent f6d53c23
Branches 1-navigation
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ fi ...@@ -10,8 +10,8 @@ fi
ip=$1 ip=$1
# Trying to remove from all jails # Trying to remove from all jails
fail2ban-client unban $ip ret=$(fail2ban-client unban $ip)
if [ $? -eq 1 ]; then if [ $ret -eq 1 ]; then
echo "$ip unbanned" echo "$ip unbanned"
else else
echo "$ip was not banned" 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