mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-09 19:10:30 +00:00
11 lines
262 B
Bash
Executable File
11 lines
262 B
Bash
Executable File
#!/system/bin/sh
|
|
|
|
CURDATE=$(date +%Y%m%d-%I.%M.%S)
|
|
|
|
[[ ! -d /data/adb/logcat ]] && mkdir -p /data/adb/logcat
|
|
|
|
# remove files older than a week to prevent pollution
|
|
find /data/adb/logcat/ -mtime +8 -exec rm -f {} \;
|
|
|
|
logcat | tee -a "/data/adb/logcat/${CURDATE}"
|