diff options
author | Adam M. Stück <adam@adast.xyz> | 2022-11-23 13:42:48 +0100 |
---|---|---|
committer | Adam M. Stück <adam@adast.xyz> | 2022-12-16 22:17:18 +0100 |
commit | ed970398285af608c647268d15dfb1091fe4500f (patch) | |
tree | 1b8c8f9ff51942e795f757e567c1f6c5f17b327d /archiver | |
parent | 8b15be0ed4040475f8a7ff085f4b1b5684eedda3 (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-x | archiver | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |