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 export LANG=C.UTF-8
TITLESHORT="VPP" TITLESHORT="VPP"
set -e function Configuration {
Configuration () {
log "############################################ SABnzbd Job: $jobname" log "############################################ SABnzbd Job: $jobname"
log "############################################ SABnzbd Category: $category" log "############################################ SABnzbd Category: $category"
log "############################################ DOCKER: $TITLE" log "############################################ DOCKER: $TITLE"
@ -38,14 +36,16 @@ Configuration () {
fi fi
} }
log () {
function log {
m_time=`date "+%F %T"` m_time=`date "+%F %T"`
echo $m_time" "$1 echo $m_time" "$1
} }
Main () {
function Main {
folderpath="$1" folderpath="$1"
jobname="$3" jobname="$3"
category="$5" category="$5"
Configuration Configuration

Loading…
Cancel
Save