From 5dc91f3273a55fe991624b68ada8fb50b64c913a Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Wed, 18 Sep 2024 23:01:23 -0700 Subject: [PATCH] Clean up fabric sync log files upon exit to ensure a new log file is generated during the next run. (#35655) * Cleanup fabric sync log files after exit * Address review comment * Restyled by whitespace --------- Co-authored-by: Restyled.io --- examples/fabric-admin/scripts/stop_fabric_sync.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/fabric-admin/scripts/stop_fabric_sync.sh b/examples/fabric-admin/scripts/stop_fabric_sync.sh index faa5c79ce211b6..a03e188b5eb0c6 100755 --- a/examples/fabric-admin/scripts/stop_fabric_sync.sh +++ b/examples/fabric-admin/scripts/stop_fabric_sync.sh @@ -21,4 +21,7 @@ fi # Remove /tmp/chip_* files and directories rm -rf /tmp/chip_* -echo "Removed /tmp/chip_* files and directories" +echo "Removed /tmp/chip_* files and directories." +rm /tmp/fabric_admin.log +rm /tmp/fabric_bridge_app.log +echo "Removed fabric sync log files."