]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
move vorbis program check top
authorBastian Dehn <hhaalo@arcor.de>
Sun, 30 Aug 2026 08:47:31 +0000 (10:47 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 30 Aug 2026 08:47:31 +0000 (10:47 +0200)
libs/vorbis.sh

index 7b849a3b3c9502306f1908fec6c8f76dce650606..7138e8500c6c85b3530a10ea98c181e05059cc2d 100644 (file)
@@ -1,5 +1,24 @@
 #!/bin/bash
 
+check_vorbis_programs()
+{
+       command -v flac > /dev/null \
+               || errlog "command flac not found" \
+               || return $?
+       command -v metaflac > /dev/null \
+               || errlog "command metaflac not found" \
+               || return $?
+       command -v oggenc > /dev/null \
+               || errlog "command oggenc not found" \
+               || return $?
+       command -v vorbiscomment > /dev/null \
+               || errlog "command vorbiscomment not found" \
+               || return $?
+       command -v parallel > /dev/null \
+               || errlog "command parallel not found" \
+               || return $?
+}
+
 read_flac_to_ogg_tags()
 {
        local inputfile="$1"
@@ -90,25 +109,6 @@ convert_flac_to_ogg()
                flac_to_vorbis "{}"
 }
 
-check_vorbis_programs()
-{
-       command -v flac > /dev/null \
-               || errlog "command flac not found" \
-               || return $?
-       command -v metaflac > /dev/null \
-               || errlog "command metaflac not found" \
-               || return $?
-       command -v oggenc > /dev/null \
-               || errlog "command oggenc not found" \
-               || return $?
-       command -v vorbiscomment > /dev/null \
-               || errlog "command vorbiscomment not found" \
-               || return $?
-       command -v parallel > /dev/null \
-               || errlog "command parallel not found" \
-               || return $?
-}
-
 execute()
 {
        local workdir="$1"