[deploy_meta] Fixed bug where sed would not proper convert semi colon output from print_meta into newlines to feed into metaflac

This commit is contained in:
ayakael 2018-05-15 23:18:02 -07:00
parent b55b55ce7b
commit 1c9dc28a03
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -32,7 +32,7 @@ deploy_meta() {
if [[ "${PRESENT_META}" != "${FUTURE_META}" ]]; then
_msg ECHO "${trackid} has differing metadata. Updating"
[[ "${PRESENT_PATH}" == "null" ]] || metaflac --remove-all "${TARGET}/${PRESENT_PATH}"
sed s'/;/\n/' <<< ${FUTURE_META} | metaflac --import-tags-from=- --import-picture-from="${GIT_DIR}/${IMAGEID}.jpg" "${TARGET}/${PRESENT_PATH}"
tr ';' \\n <<< ${FUTURE_META} | metaflac --import-tags-from=- --import-picture-from="${GIT_DIR}/${IMAGEID}.jpg" "${TARGET}/${PRESENT_PATH}"
[[ $? -eq 0 ]] || local ERR=true
fi