merged pt-stalk-removes-non-empty-files-that-start-with-empty-line-1425478

This commit is contained in:
Frank Cizmich
2015-04-09 11:54:16 -03:00

View File

@@ -1000,7 +1000,7 @@ collect() {
wait_for_subshells $OPT_RUN_TIME
kill_all_subshells
for file in "$d/$p-"*; do
if [ -z "$(grep -v '^TS ' --max-count 1 "$file")" ]; then
if [ -z "$(grep -v '^TS ' --max-count 10 "$file")" ]; then
log "Removing empty file $file";
rm "$file"
fi