From 33e88fba837c2e096011169cdc912c24a961f035 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 26 Mar 2022 19:26:52 -0400 Subject: [PATCH] modified: hash-files Passing mdls_value to mdls_properties as a list instead of string variable --- hash-files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hash-files b/hash-files index 840b0e2..a06f9a8 100755 --- a/hash-files +++ b/hash-files @@ -34,14 +34,14 @@ mdls_per_file () { mdls_value=$(printf "%s" $line | cut -d '=' -f 2) if [[ " ${keys_of_interest[*]} " =~ " ${mdls_key} " ]];then IFS=$old_IFS - mdls_properties+=$mdls_value + mdls_properties+=( $mdls_value ) unset IFS else : #echo "Did not print!" fi IFS=$old_IFS done - IFS=',';echo "${mdls_properties[*]}";IFS=$'\n' + IFS=',';echo "${mdls_properties[*]}";IFS=$old_IFS }