aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-05-28 12:04:08 +0000
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-05-28 12:04:08 +0000
commit6bd833947dcf9e6de263b7937d57ac800d05339d (patch)
treec847efbe6b554acfbd75d0d3f0602c4a97d3ee5b /bash
parentc0d9f47e3cfa326458a37f0246eb304a3d176f49 (diff)
downloaddotfiles-6bd833947dcf9e6de263b7937d57ac800d05339d.tar.gz
dotfiles-6bd833947dcf9e6de263b7937d57ac800d05339d.tar.bz2
dotfiles-6bd833947dcf9e6de263b7937d57ac800d05339d.zip
Fixed showbanned function
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 6223964..2a1df14 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -78,9 +78,9 @@ fi
78if exists pfctl; then 78if exists pfctl; then
79 showbanned () 79 showbanned ()
80 { 80 {
81 for table in $(sudo pfctl -s Tables 2> /dev/null); do 81 for table in "fail2ban"; do
82 echo "$table"; 82 banned=$(sudo pfctl -t $table -T show 2> /dev/null)
83 sudo pfctl -t $table -T show 2> /dev/null; 83 echo -e "$table\n$banned"
84 done 84 done
85 } 85 }
86fi 86fi