From e4fc8120f4c9821e060da4475eca78ff32425749 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 13 Jul 2025 21:19:04 +0200 Subject: [PATCH] change cover metablock without if --- albentohandy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/albentohandy b/albentohandy index 48c5ea4..87315dd 100755 --- a/albentohandy +++ b/albentohandy @@ -220,10 +220,11 @@ read_flac_to_ogg_tags() | vorbiscomment --commentfile - --write $outputfile fi - if [ -f $coverfile ]; then - echo "METADATA_BLOCK_PICTURE=$(base64 --wrap 0 $coverfile)" \ + [ -f $coverfile ] \ + || return 0 + + echo "METADATA_BLOCK_PICTURE=$(base64 --wrap 0 $coverfile)" \ | vorbiscomment --commentfile - --raw --append $outputfile - fi } encoding_flac_to_ogg() -- 2.47.3