learn to sh right
This commit is contained in:
parent
323f926e53
commit
bccf51d4a4
@ -26,7 +26,7 @@ abort() {
|
||||
block_ip() {
|
||||
case "$fw_cmd" in
|
||||
ufw)
|
||||
if [ "$getroot" ufw deny from $ip >/dev/null 2>>$logf ]; then
|
||||
if "$getroot" ufw deny from $ip >/dev/null 2>>$logf; then
|
||||
echo `date` blocked ip $ip with freq $freq >> $logf
|
||||
else
|
||||
abort "failed to block ip $ip"
|
||||
|
Reference in New Issue
Block a user