From 949085903700fda7c98e4244d9a59f9caf748c47 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Nov 2023 20:58:09 -0600 Subject: [PATCH] added clear_logs script --- .gitignore | 3 ++- clear_logs.sh | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 clear_logs.sh diff --git a/.gitignore b/.gitignore index 8839b2a..f0cb7cb 100644 --- a/.gitignore +++ b/.gitignore @@ -159,4 +159,5 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -log/ \ No newline at end of file +log/ +state.json \ No newline at end of file diff --git a/clear_logs.sh b/clear_logs.sh new file mode 100755 index 0000000..94d6479 --- /dev/null +++ b/clear_logs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +SCRIPT_DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}")) +rm -rf $SCRIPT_DIR/zigbee2mqtt/log/* \ No newline at end of file