From a5446ad79c5188ce1f8d6412dcd3ee2efef09b1c Mon Sep 17 00:00:00 2001 From: mitsudori Date: Tue, 26 Nov 2024 18:37:48 +0000 Subject: [PATCH] Atualizar main.sh --- main.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/main.sh b/main.sh index 95d9047..86d5114 100644 --- a/main.sh +++ b/main.sh @@ -2,13 +2,12 @@ # The getopt are for extra param, i like to use -x6 for extra encode processing # You can read more on the docs: https://www.wavpack.com/wavpack_doc.html array=("DATE" "TOTALTRACKS" "TRACKNUMBER" "ALBUM" "ARTIST" "TITLE") - -for i in *.flac; do - filename=${i%.*} +trap "echo Exited!; exit;" SIGINT SIGTERM +for i in *.flac ; do + filename=${i%.*}; flac --decode -c "$i" | wavpack -i $1 "-" -hhb2 -y -o "$filename.wv"; -done - -for n in ${array[@]}; do - tag=`metaflac --show-tag=$n "$i"`; - wvtag -w "$tag" "$filename.wv" ; -done + for n in ${array[@]}; do + tag=`metaflac --show-tag=$n "$i"`; + wvtag -w "$tag" "$filename.wv" ; + done +done \ No newline at end of file