]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
change cleanup flac
authorBastian Dehn <hhaalo@arcor.de>
Sun, 13 Jul 2025 19:24:35 +0000 (21:24 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 13 Jul 2025 19:24:35 +0000 (21:24 +0200)
albentohandy

index 87315dda50b7b7255482c154420be37f55587f4d..9e611552faa0e1e4ab0fc5790daa39b6355a340f 100755 (executable)
@@ -301,11 +301,15 @@ convert_cover_to_metadata()
 
 #### END VORBIS ####
 
-CleanupFlac()
+cleanup_flac()
 {
-       local readonly WORKDIR="$1"
+       local workdir="$1"
+
+       [ -n "$workdir" ] \
+               || errlog "missing workdir could not cleanup" \
+               || return $?
 
-       find $WORKDIR -name '*.flac' -exec rm {} \;
+       find $workdir -name '*.flac' -exec rm {} \;
 }
 
 CleanupCover()
@@ -434,6 +438,7 @@ convert_process()
        *)
                convert_cover_to_metadata "$workdir"
                convert_flac_to_ogg "$workdir"
+               cleanup_flac "$workdir"
                ;;
        esac