v1.2 - bug fix for function exit, improved logging

This commit is contained in:
RandomNinjaAtk 2023-07-15 16:06:54 -04:00 committed by GitHub
parent f99f2aed74
commit 142c646292
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.1"
scriptVersion="1.2"
scriptName="UnmappedFolderCleaner"
log () {
@ -86,7 +86,7 @@ UnmappedFolderCleanerProcess () {
log "$unmappedFoldersCount Folders Found!"
if [ $unmappedFoldersCount = 0 ]; then
log "No cleanup required, exiting..."
exit
return
fi
for folder in $(echo "$unmappedFolders"); do
log "Removing $folder"
@ -100,6 +100,7 @@ UnmappedFolderCleanerProcess () {
for (( ; ; )); do
let i++
logfileSetup
log "Script starting..."
verifyConfig
getArrAppInfo
verifyApiAccess