Skip to content

Commit c9dca4e

Browse files
committed
less history to improve listing speed
1 parent 994c409 commit c9dca4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ log_history() {
6464

6565
touch $log
6666
if [ '99' -lt "$(wc -l $log |cut -f 1 -d ' ')" ]; then
67-
tail -n 99 $log > $log.moved
67+
tail -n 49 $log > $log.moved
6868
mv -f $log.moved $log
6969
chmod 660 $log
7070
fi

0 commit comments

Comments
 (0)