From 91d0e5353a71708e5e284f02849fad0af2028ed3 Mon Sep 17 00:00:00 2001 From: tw93 Date: Sun, 15 Feb 2026 08:18:02 +0800 Subject: [PATCH] fix: handle cd failure in diagnostic report standalone test --- tests/test_diagnostic_reports_standalone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_diagnostic_reports_standalone.sh b/tests/test_diagnostic_reports_standalone.sh index fc23935..8137a30 100644 --- a/tests/test_diagnostic_reports_standalone.sh +++ b/tests/test_diagnostic_reports_standalone.sh @@ -10,7 +10,7 @@ if [[ ! -f "$PROJECT_ROOT/lib/core/app_protection.sh" ]]; then PROJECT_ROOT="$(pwd)" SCRIPT_DIR="$PROJECT_ROOT/tests" fi -cd "$PROJECT_ROOT" +cd "$PROJECT_ROOT" || exit 1 source_crlf_safe() { local f="$1"