Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 2d4217f

Browse files
committed
Actually reworks demo condenser.
1 parent 0106220 commit 2d4217f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

condense.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
DEMO_PATH=${DEMO_PATH:-'/game_logs'}
4+
DEMO_PATTERN=${DEMO_PATTERN:-'*demo.txt'}
5+
DEMO_MINIMUM_MINUTES=${DEMO_MINIMUM_MINUTES:-1440}
6+
7+
DEMO_FILES=$(find $DEMO_PATH -mmin +$DEMO_MINIMUM_MINUTES -name $DEMO_PATTERN)
8+
9+
for DEMO_FILE in $DEMO_FILES
10+
do
11+
echo "Compressing demo file: ${DEMO_FILE}"
12+
gzip $DEMO_FILE
13+
done

0 commit comments

Comments
 (0)