From 006e5b48fd716c7f6402f660aeb540cbadcfdf93 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 7 Jul 2023 09:11:56 -0400 Subject: [PATCH] Update video.bash --- sabnzbd/video.bash | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sabnzbd/video.bash b/sabnzbd/video.bash index 783a7bd..c095f00 100644 --- a/sabnzbd/video.bash +++ b/sabnzbd/video.bash @@ -1,9 +1,6 @@ #!/usr/bin/with-contenv bash scriptVersion="1.0.0" -set -e -set -o pipefail - ######## Settings videoLanguages="eng" requireLanguageMatch="true" @@ -36,12 +33,16 @@ InstallRequirements () { fi } +InstallRequirements + +set -e +set -o pipefail + # auto-clean up log file to reduce space usage if [ -f "/config/scripts/video.txt" ]; then find /config/scripts -type f -name "video.txt" -size +1024k -delete fi - touch "/config/scripts/video.txt" chmod 666 "/config/scripts/video.txt" exec &> >(tee -a "/config/scripts/video.txt") @@ -209,7 +210,7 @@ function Main { echo "Post Processing Completed in $(($duration / 60 )) minutes and $(($duration % 60 )) seconds!" } -InstallRequirements + Main "$@" exit $?