Skip to content

Commit

Permalink
Fix compress_logs: xargs only one arg at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Oct 28, 2024
1 parent ba0b863 commit 8a42dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/compress_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ pushd "$LOGS_DIR" || exit 1

# Compress older-than-one-week files
find . -mtime +7 -name '*.log' -print0 \
| xargs -0 -P 4 gzip
| xargs -0 -n 1 -P 4 gzip

0 comments on commit 8a42dde

Please sign in to comment.