Skip to content

Commit

Permalink
Fix to prevent recursive trap handling
Browse files Browse the repository at this point in the history
  • Loading branch information
masipro committed Aug 23, 2024
1 parent 7a05815 commit f79a44f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14637,10 +14637,19 @@ function capture_traps() {
exit_script_option
;;
*)
if [ -n "${capture_traps_in_progress}" ]; then
echo
language_strings "${language}" 12 "green"
echo -n "> "
return
fi

capture_traps_in_progress=1
local previous_default_choice="${default_choice}"
ask_yesno 12 "yes"
if [ "${yesno}" = "y" ]; then
exit_code=1
capture_traps_in_progress=""
exit_script_option
else
if [ -n "${previous_default_choice}" ]; then
Expand Down Expand Up @@ -14680,6 +14689,7 @@ function capture_traps() {
echo
hardcore_exit
fi
capture_traps_in_progress=""
}

#Exit the script managing possible pending tasks
Expand Down Expand Up @@ -15991,6 +16001,7 @@ function initialize_script_settings() {
country_code="00"
clean_all_iptables_nftables=1
right_arping=0
capture_traps_in_progress=""
}

#Detect graphics system
Expand Down

0 comments on commit f79a44f

Please sign in to comment.