From 446a294ea6111f321401143520dc4272415623a6 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Wed, 13 Aug 2025 16:32:43 -0400 Subject: [PATCH] Fix interactive unban --- scripts/usr/local/bin/script-user-unban | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/usr/local/bin/script-user-unban b/scripts/usr/local/bin/script-user-unban index bfa1fd96..a866518e 100755 --- a/scripts/usr/local/bin/script-user-unban +++ b/scripts/usr/local/bin/script-user-unban @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Unbans a fail2ban IP +# Unban a fail2ban IP # Copyright 2021-2025 Bryan C. Roessler # Licensed under the Apache License, Version 2.0 p="${BASH_SOURCE[0]%/*}"; [[ -r $p/script-functions ]] && . "$p"/script-functions || exit 1 @@ -9,9 +9,9 @@ echo "Usage: sudo $0 [ip_address]" is_root if [[ $# -eq 1 ]]; then - ip_address="$1" + ip_address="$1" else - prompt ip_address + ip_address=$(prompt ip_address) fi if fail2ban-client set sshd unbanip "$ip_address"; then