From 1c9dc28a0369c5d4b7c07c2b289ae9a3ab5890fb Mon Sep 17 00:00:00 2001 From: ayakael Date: Tue, 15 May 2018 23:18:02 -0700 Subject: [PATCH] [deploy_meta] Fixed bug where sed would not proper convert semi colon output from print_meta into newlines to feed into metaflac --- src/deploy_meta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deploy_meta b/src/deploy_meta index fefda28..fcaeff6 100644 --- a/src/deploy_meta +++ b/src/deploy_meta @@ -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