fix(p2p-intel): Remove ash-incompatible redirection in for loop

The 2>/dev/null in for loop header causes syntax error in BusyBox ash.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-24 17:24:55 +01:00
parent a8eb8b1271
commit 997f4e47c2

View File

@ -260,7 +260,7 @@ process_received() {
get_validated() { get_validated() {
echo "[" echo "["
local first=1 local first=1
for f in "$VALIDATED_DIR"/*.json 2>/dev/null; do for f in "$VALIDATED_DIR"/*.json; do
[ -f "$f" ] || continue [ -f "$f" ] || continue
[ "$first" = "1" ] || echo "," [ "$first" = "1" ] || echo ","
cat "$f" cat "$f"