fix: ATTACKS_OUT directory not guaranteed to exist (#816)

This commit is contained in:
openhands 2026-03-15 22:36:51 +00:00
parent 938c6d284e
commit ac2fa16e2e

View file

@ -21,6 +21,8 @@ die() { log "FATAL: $*" >&2; exit 1; }
[[ -f "$INJECT" ]] || die "inject.sh not found at $INJECT" [[ -f "$INJECT" ]] || die "inject.sh not found at $INJECT"
mkdir -p "$ATTACKS_OUT"
# Reset cross-patterns file for this sweep invocation (prevents stale data from prior runs) # Reset cross-patterns file for this sweep invocation (prevents stale data from prior runs)
> "$CROSS_PATTERNS_FILE" > "$CROSS_PATTERNS_FILE"