From 3edef98aff393366436f13dfd60c7be1dab14574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Iwanicki?= Date: Tue, 23 Sep 2025 17:01:37 +0200 Subject: [PATCH] dts-functions: send_dts_logs: move prompt out of send_dts_logs_main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Iwanicki --- include/dts-functions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/dts-functions.sh b/include/dts-functions.sh index 3a10888..b4f75cd 100644 --- a/include/dts-functions.sh +++ b/include/dts-functions.sh @@ -1668,19 +1668,20 @@ send_dts_logs_main() { echo "Logs sent." fi fi - if [ "$ask" = "ask" ]; then - read -p "Press Enter to continue." - fi } # send_dts_logs [ask] # Create and upload archive with logs if SEND_LOGS_ACTIVE is true or first # argument is "ask" and user confirms that he wants to send logs send_dts_logs() { + local ask="$1" if ! send_dts_logs_main "$@"; then print_warning "You can still upload the logs manually by following: https://docs.dasharo.com/osf-trivia-list/dts/#how-can-i-help-the-support-team-diagnose-my-problem-faster" fi + if [ "$ask" = "ask" ]; then + read -p "Press Enter to continue." + fi } check_if_fused() {