diff --git a/post_install.sh b/post_install.sh index 440e9ad..d726544 100644 --- a/post_install.sh +++ b/post_install.sh @@ -98,10 +98,11 @@ while true; do continue fi - # Script ausführen - # -------------------------------------- - # Strg+C im Unter-Script abfangen, Master-Script bleibt aktiv - ( trap '' SIGINT; bash "$tmpfile" ) + # Script ausführen in Subshell mit SIGINT-Handler + ( + trap 'echo -e "\n${YELLOW}${INDENT}Unter-Script abgebrochen! Zurück zum Menü...${RESET}"; exit 1' SIGINT + bash "$tmpfile" + ) rm -f "$tmpfile" echo -e "\n${CYAN}${INDENT}------------------------------------${RESET}"