]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
change cover metablock without if
authorBastian Dehn <hhaalo@arcor.de>
Sun, 13 Jul 2025 19:19:04 +0000 (21:19 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 13 Jul 2025 19:19:04 +0000 (21:19 +0200)
albentohandy

index 48c5ea43c9cc97196246983a527afc3a441ffae9..87315dda50b7b7255482c154420be37f55587f4d 100755 (executable)
@@ -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()