summaryrefslogtreecommitdiff
path: root/archiver
diff options
context:
space:
mode:
authorAdam M. Stück <adam@adast.xyz>2022-11-23 13:42:48 +0100
committerAdam M. Stück <adam@adast.xyz>2022-12-16 22:17:18 +0100
commited970398285af608c647268d15dfb1091fe4500f (patch)
tree1b8c8f9ff51942e795f757e567c1f6c5f17b327d /archiver
parent8b15be0ed4040475f8a7ff085f4b1b5684eedda3 (diff)
fix: archiver find command options order
-maxdepth option must come first archiver will also now overwrite an exiting data.csv
Diffstat (limited to 'archiver')
-rwxr-xr-xarchiver2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiver b/archiver
index 4dfb8a8..58b5bf5 100755
--- a/archiver
+++ b/archiver
@@ -34,7 +34,7 @@ aggregate_files() {
OUTPUT+="$FILE\n"
HEADER_INSERTED=true
- done < <(find "$RESULTS_PATH" -name '*.csv' -maxdepth 1 -type f -print0)
+ done < <(find "$RESULTS_PATH" -maxdepth 1 -name '*.csv' ! -name 'data.csv' -type f -print0)
HEADER=$(echo -e "$OUTPUT" | head -n 1)
ALL_ROWS=$(echo -e "$OUTPUT" | tail -n +2 | sort -t$'\t' -k6,6 -n)