From f39211284f826e6750abf024f30fbe139dc0136c Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 30 Mar 2022 07:32:25 -0400 Subject: [PATCH] v1.03 - Add removal of unwanted files to Audio Quality Match Verification function --- root/scripts/audio-pp.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/audio-pp.bash b/root/scripts/audio-pp.bash index 871ed08..217ee37 100644 --- a/root/scripts/audio-pp.bash +++ b/root/scripts/audio-pp.bash @@ -2,7 +2,7 @@ export LC_ALL=C.UTF-8 export LANG=C.UTF-8 TITLESHORT="APP" -ScriptVersion="1.02" +ScriptVersion="1.03" set -e set -o pipefail @@ -69,8 +69,8 @@ Main () { AudioQualityMatch () { if [ "$RequireAudioQualityMatch" == "true" ]; then + find "$1" -type f -not -iname "*.$AudioFileExtension" -delete if [ $(find "$1" -type f -iname "*.$AudioFileExtension" | wc -l) -gt 0 ]; then - echo "Verifying Audio Quality Match" echo "Verifying Audio Quality Match: PASSED (.$AudioFileExtension)" else echo "Verifying Audio Quality Match"