Switch function style, to avoid using subshells....

master
RandomNinjaAtk 4 years ago committed by GitHub
parent eaa6766498
commit b68bb055a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,12 +36,14 @@ Configuration () {
fi
}
log () {
function log {
m_time=`date "+%F %T"`
echo $m_time" "$1
}
Main () {
function Main {
folderpath="$1"
jobname="$3"
category="$5"

Loading…
Cancel
Save