mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
less history to improve listing speed
This commit is contained in:
parent
994c409010
commit
c9dca4e2cf
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ log_history() {
|
|||
|
||||
touch $log
|
||||
if [ '99' -lt "$(wc -l $log |cut -f 1 -d ' ')" ]; then
|
||||
tail -n 99 $log > $log.moved
|
||||
tail -n 49 $log > $log.moved
|
||||
mv -f $log.moved $log
|
||||
chmod 660 $log
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue