mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-02-18 04:17:13 +01:00
less history to improve listing speed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user