From 77f544faf6d5276ed8fe5e370add31c5948f599b Mon Sep 17 00:00:00 2001 From: Tilman Kranz Date: Sun, 21 Nov 2021 14:19:55 +0100 Subject: [PATCH] bugfix in timer option application --- nft-edit-ruleset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nft-edit-ruleset b/nft-edit-ruleset index 94295f5..32fa7f7 100755 --- a/nft-edit-ruleset +++ b/nft-edit-ruleset @@ -138,13 +138,13 @@ while true ; do read -p "Errors when applying changes (Ctrl-c to abort, ENTER to continue editing)" -r answer fi else + if "$timeout" ; then set_timeout "$tmp_old" "$timeout_secs" fi echo "Changes applied successfully." - if "$timeout" ; then - exit 0 + break fi fi done