[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:
parent
b55b55ce7b
commit
1c9dc28a03
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ deploy_meta() {
|
||||||
if [[ "${PRESENT_META}" != "${FUTURE_META}" ]]; then
|
if [[ "${PRESENT_META}" != "${FUTURE_META}" ]]; then
|
||||||
_msg ECHO "${trackid} has differing metadata. Updating"
|
_msg ECHO "${trackid} has differing metadata. Updating"
|
||||||
[[ "${PRESENT_PATH}" == "null" ]] || metaflac --remove-all "${TARGET}/${PRESENT_PATH}"
|
[[ "${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
|
[[ $? -eq 0 ]] || local ERR=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue