luci-app-unblockneteasemusic: fix log

This commit is contained in:
CN_SZTL 2019-08-23 15:40:17 +08:00
parent ee16cd10be
commit 8b512740d6
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -8,6 +8,6 @@ log_file="/tmp/unblockneteasemusic.log"
while true
do
(( log_size = "$(ls -l "${log_file}" | awk -F ' ' '{print $5}')" / "1024" ))
(( "${log_size}" >= "${log_max_size}" )) && rm -f "${log_file}"
(( "${log_size}" >= "${log_max_size}" )) && echo "" > "${log_file}"
sleep 5m
done