2.3 - Move import settings to functoin

This commit is contained in:
RandomNinjaAtk 2023-07-15 10:59:43 -04:00 committed by GitHub
parent c36106ae7f
commit 066f3452be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,7 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="2.2" scriptVersion="2.3"
scriptName="Video" scriptName="Video"
#### Import Settings
source /config/extended.conf
videoContainer=mkv
log () { log () {
m_time=`date "+%F %T"` m_time=`date "+%F %T"`
echo $m_time" :: $scriptName :: $scriptVersion :: "$1 echo $m_time" :: $scriptName :: $scriptVersion :: "$1
@ -23,6 +19,10 @@ logfileSetup () {
} }
verifyConfig () { verifyConfig () {
#### Import Settings
source /config/extended.conf
videoContainer=mkv
if [ "$enableVideo" != "true" ]; then if [ "$enableVideo" != "true" ]; then
log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..." log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..."
log "Sleeping (infinity)" log "Sleeping (infinity)"