modified: hash-files

Passing mdls_value to mdls_properties as a list instead of
		string variable
rewrite-2022-03-26
Mike Holloway 3 years ago
parent 0ece9167c0
commit 33e88fba83
  1. 4
      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
}

Loading…
Cancel
Save