1.5 - fix logging
This commit is contained in:
parent
ec999d2948
commit
cebfe47ba8
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
scriptVersion="1.4"
|
||||
scriptVersion="1.5"
|
||||
ytdlpExtraOpts="--user-agent facebookexternalhit/1.1"
|
||||
scriptName="YoutubeSeriesDownloader"
|
||||
|
||||
|
@ -18,9 +18,12 @@ logfileSetup () {
|
|||
touch "/config/logs/$scriptName.txt"
|
||||
chmod 666 "/config/logs/$scriptName.txt"
|
||||
fi
|
||||
exec &> >(tee -a "/config/logs/$scriptName.txt")
|
||||
}
|
||||
|
||||
# Create Log, start writing...
|
||||
logfileSetup
|
||||
exec &> >(tee -a "/config/logs/$scriptName.txt")
|
||||
|
||||
verifyConfig () {
|
||||
#### Import Settings
|
||||
source /config/extended.conf
|
||||
|
|
Loading…
Reference in a new issue