From b68bb055a244734dd1a4daca8a46f8748125a2f5 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 15 Sep 2020 09:34:13 -0400 Subject: [PATCH] Switch function style, to avoid using subshells.... --- root/scripts/video-pp.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/root/scripts/video-pp.bash b/root/scripts/video-pp.bash index 3d15f0d..45d60ae 100644 --- a/root/scripts/video-pp.bash +++ b/root/scripts/video-pp.bash @@ -3,9 +3,7 @@ export LC_ALL=C.UTF-8 export LANG=C.UTF-8 TITLESHORT="VPP" -set -e - -Configuration () { +function Configuration { log "############################################ SABnzbd Job: $jobname" log "############################################ SABnzbd Category: $category" log "############################################ DOCKER: $TITLE" @@ -38,14 +36,16 @@ Configuration () { fi } -log () { + +function log { m_time=`date "+%F %T"` echo $m_time" "$1 } -Main () { + +function Main { folderpath="$1" - jobname="$3" + jobname="$3" category="$5" Configuration