1.3 - logging fixes

This commit is contained in:
RandomNinjaAtk
2023-07-19 14:45:37 +00:00
committed by GitHub
parent a9bf7baa3c
commit 668dd0c840

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.2"
scriptVersion="1.3"
scriptName="UnmappedFolderCleaner"
log () {
@@ -17,9 +17,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