From 05c46480fa16cefdad2b5c15f210e2ef72ba1d0c Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 26 Mar 2022 18:28:28 -0400 Subject: [PATCH] On branch rewrite-2022-03-26 Your branch is up to date with 'origin/rewrite-2022-03-26'. Changes to be committed: modified: hash-files Important to note - macOS `md5` the checksum is field 4 whereas Linux `md5sum` the checksum is field 1 --- hash-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash-files b/hash-files index 745e0ab..dfc6598 100755 --- a/hash-files +++ b/hash-files @@ -73,7 +73,7 @@ done IFS=',';echo "${csv_columns[*]}";IFS=$'\n' ## Loop through files, writing to csv for file in $(find $Working_Fullpath -maxdepth 1 -type f); do - hash=$($md5_bin $file | awk '{ print $2 }') + hash=$($md5_bin $file | awk '{ print $4 }') mdls_properties=$(mdls_per_file $file) write_per_file $file $hash $mdls_properties done