From 7e82c74f4aa53efabec5a5e80ed144af652aa97b Mon Sep 17 00:00:00 2001 From: helenwangjia <1573523714@qq.com> Date: Wed, 25 Oct 2023 07:26:30 +0000 Subject: [PATCH] fix bug when deleting log in bacnet branch --- osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh b/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh index 9bd2e23..9ecc0fd 100755 --- a/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh +++ b/osect_sensor/Infrastructure/edge_cron/work/ot_tools/bro.sh @@ -48,4 +48,4 @@ if [ $5 = "True" ]; then merge_log "modbus_detailed.*.log" "modbus_detailed.log" fi -rm $(find /usr/local/zeek/logs -name "*.log") +find /usr/local/zeek/logs -name "*.log" -print0 | xargs -0 rm