From 9fa61bfe184ef60c7969c8b2eb5bc06319702d73 Mon Sep 17 00:00:00 2001 From: "j.katzwinkel@posteo.de" Date: Tue, 25 Feb 2025 14:09:50 +0100 Subject: [PATCH 1/2] Add -silent to bash script. --- atsetup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atsetup.sh b/atsetup.sh index 12239e6b..8412c7f4 100644 --- a/atsetup.sh +++ b/atsetup.sh @@ -62,6 +62,11 @@ else echo "Continue with the main menu." fi +# Check for "-silent" install command-line argument +if [$1 = "-silent"]; then + install_custom_standalone ;; +fi + # Main Menu main_menu() { while true; do From b07697b466433b351ad117ff88bf7be217c7ffc8 Mon Sep 17 00:00:00 2001 From: "j.katzwinkel@posteo.de" Date: Tue, 25 Feb 2025 14:26:45 +0100 Subject: [PATCH 2/2] Move to correct position + fix bash syntax --- atsetup.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/atsetup.sh b/atsetup.sh index 8412c7f4..fca04a3f 100644 --- a/atsetup.sh +++ b/atsetup.sh @@ -62,11 +62,6 @@ else echo "Continue with the main menu." fi -# Check for "-silent" install command-line argument -if [$1 = "-silent"]; then - install_custom_standalone ;; -fi - # Main Menu main_menu() { while true; do @@ -558,6 +553,10 @@ reapply_standalone() { echo } - -# Start the main menu -main_menu +# Check for "-silent" install command-line argument +if [[ $1 == "-silent" ]]; then + install_custom_standalone +else + # Start the main menu + main_menu +fi \ No newline at end of file