fix: 删除data文件夹

This commit is contained in:
wangzhongjie 2025-03-07 07:54:33 +08:00
parent 961dd2e5b5
commit 84128dd235

View File

@ -1,9 +1,9 @@
TOOLCHAIN_PATH=./mac TOOLCHAIN_PATH=./mac
DOWNLOAD_PATH=../logs DOWNLOAD_PATH=../logs
logd: stud:
cd $(TOOLCHAIN_PATH) && \ cd $(TOOLCHAIN_PATH) && \
./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH) ./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH)
hilogd: hilog:
cd $(TOOLCHAIN_PATH) && \ cd $(TOOLCHAIN_PATH) && \
TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \ TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \
./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \ ./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \
@ -18,3 +18,6 @@ open:
./hdc shell hilog -p off && \ ./hdc shell hilog -p off && \
./hdc shell hilog -b D ./hdc shell hilog -b D
./hdc shell hilog -w start -t kmsg -m none ./hdc shell hilog -w start -t kmsg -m none
delete:
# 删除当前目录的data文件夹
rm -rf $(DOWNLOAD_PATH)/data