1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 20:15:07 +00:00

fix: preserve gatekeeper state in optimize

This commit is contained in:
Tw93
2026-03-22 19:36:54 +08:00
parent 0c71ee9363
commit 1b98041e0f
2 changed files with 8 additions and 18 deletions

View File

@@ -141,6 +141,12 @@ EOF
[[ "$output" == *"Font cache cleared"* ]]
}
@test "optimize does not auto-fix Gatekeeper anymore" {
run grep -n "spctl --master-enable\\|SECURITY_FIXES+=([\"']gatekeeper|" "$PROJECT_ROOT/bin/optimize.sh"
[ "$status" -eq 1 ]
}
@test "opt_font_cache_rebuild skips when Firefox helpers are running" {
run env HOME="$HOME" PROJECT_ROOT="$PROJECT_ROOT" bash --noprofile --norc <<'EOF'
set -euo pipefail