]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
fix shellcheck issues flac.sh
authorBastian Dehn <hhaalo@arcor.de>
Fri, 3 Jul 2026 12:59:50 +0000 (14:59 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 3 Jul 2026 12:59:50 +0000 (14:59 +0200)
libs/flac.sh

index a39019dd01a34d585fca9e159fcc12fa46d52fbe..5fb4300784f5f4a5d22de7e2b0f161726d1eaa9d 100644 (file)
@@ -1,13 +1,16 @@
+#!/bin/bash
+
 picture_to_flac()
 {
        local workdir="$1"
-       local flacfiles="$(find $workdir -name '*.flac' | sort)"
+       local flacfiles=
+       flacfiles="$(find "$workdir" -name '*.flac' | sort)"
 
        local file=
        for file in $flacfiles; do
                metaflac \
                --import-picture-from="3|image/jpeg|||${file%/*}/cover.jpg" \
-               $file
+               "$file"
        done
 }