summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam M. Stück <adam@adast.xyz>2022-11-23 12:51:59 +0100
committerAdam M. Stück <adam@adast.xyz>2022-12-16 22:17:18 +0100
commit8b15be0ed4040475f8a7ff085f4b1b5684eedda3 (patch)
tree697057f4dd1b18522d87c4c450a25b684d4e3582
parentc3dd7c95e17523e77e8558b9cb57176bc8275bea (diff)
Archiver now only looks at job data (*.csv)
This fixes an issue where the generated data.csv contains text from non-job data files such as *.hardwareinfo
-rwxr-xr-xarchiver2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiver b/archiver
index 1c0bc79..4dfb8a8 100755
--- a/archiver
+++ b/archiver
@@ -34,7 +34,7 @@ aggregate_files() {
OUTPUT+="$FILE\n"
HEADER_INSERTED=true
- done < <(find "$RESULTS_PATH" -maxdepth 1 -type f -print0)
+ done < <(find "$RESULTS_PATH" -name '*.csv' -maxdepth 1 -type f -print0)
HEADER=$(echo -e "$OUTPUT" | head -n 1)
ALL_ROWS=$(echo -e "$OUTPUT" | tail -n +2 | sort -t$'\t' -k6,6 -n)