Skip to content

Commit 3ae6c54

Browse files
committed
Use tar.gz instead of zip
Better compression ratio
1 parent 74935fa commit 3ae6c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/circleci-prepare-log-dir.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PREFIX="${CT_REPORTS//\//_}"
3939
# Optimize naming, so it is easy to extract on MacOS just by clicking it
4040
# and with reasonable directory names
4141
LOG_DIR_ROOT=${CT_REPORTS}/logs/${PREFIX}_${now}
42-
LOG_ZIP=${CT_REPORTS_FULL}/logs_${PREFIX}_${now}.zip
42+
LOG_ZIP=${CT_REPORTS_FULL}/logs_${PREFIX}_${now}.tar.gz
4343
for dev_node_logs_path in `find _build -name log -type d`; do
4444
dev_node=$(basename $(dirname $(dirname $(dirname ${dev_node_logs_path}))))
4545
LOG_DIR=${LOG_DIR_ROOT}/${dev_node}/
@@ -56,7 +56,7 @@ OLD_DIR=$(pwd)
5656
cd "$LOG_DIR_ROOT/.."
5757

5858
# Zip to safe space
59-
zip -9 -r "$LOG_ZIP" "$(basename "$LOG_DIR_ROOT")"
59+
tar -czvf "$LOG_ZIP" "$(basename "$LOG_DIR_ROOT")"
6060

6161
cd "$OLD_DIR"
6262

0 commit comments

Comments
 (0)