1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-17 14:23:54 +00:00

fix: handle cd failure in diagnostic report standalone test

This commit is contained in:
tw93
2026-02-15 08:18:02 +08:00
parent ad21e75f73
commit 91d0e5353a

View File

@@ -10,7 +10,7 @@ if [[ ! -f "$PROJECT_ROOT/lib/core/app_protection.sh" ]]; then
PROJECT_ROOT="$(pwd)" PROJECT_ROOT="$(pwd)"
SCRIPT_DIR="$PROJECT_ROOT/tests" SCRIPT_DIR="$PROJECT_ROOT/tests"
fi fi
cd "$PROJECT_ROOT" cd "$PROJECT_ROOT" || exit 1
source_crlf_safe() { source_crlf_safe() {
local f="$1" local f="$1"