mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -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
|
touch $log
|
||||||
if [ '99' -lt "$(wc -l $log |cut -f 1 -d ' ')" ]; then
|
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
|
mv -f $log.moved $log
|
||||||
chmod 660 $log
|
chmod 660 $log
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue