Bug fixes

#87
This commit is contained in:
RandomNinjaAtk 2023-09-21 10:30:02 +00:00 committed by GitHub
parent b3141281eb
commit 60051d3c0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,10 @@ log () {
}
logfileSetup () {
if [ ! -f "/config/logs/$scriptName.txt" ]; then
echo "" > /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt
chmod 666 "/config/logs/$scriptName-_$(date +"%Y_%m_%d_%I_%M_%p").txt"
logFileName="$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt"
if [ ! -f "/config/logs/$logFileName" ]; then
echo "" > "/config/logs/$logFileName"
chmod 666 "/config/logs/$logFileName"
fi
}