minor cleanup
This commit is contained in:
@@ -14,11 +14,11 @@ If ( $Reinstall ) {
|
|||||||
## Remove all cached content
|
## Remove all cached content
|
||||||
$CacheDir = "${Env:LOCALAPPDATA}\Microsoft\Teams"
|
$CacheDir = "${Env:LOCALAPPDATA}\Microsoft\Teams"
|
||||||
If ( Test-Path $CacheDir ) {
|
If ( Test-Path $CacheDir ) {
|
||||||
LogMsg "Removing all cached data for Teams"
|
LogMsg "Removing all cached data"
|
||||||
Try { Remove-Item $CacheDir -Recurse -Force }
|
Try { Remove-Item $CacheDir -Recurse -Force }
|
||||||
Catch { LogErr $_.Exception.Message }
|
Catch { LogErr $_.Exception.Message }
|
||||||
} Else { LogMsg "Could not clear cached data because the directory could not be found" }
|
} Else { LogMsg "Could not clear cached data because the directory could not be found" }
|
||||||
|
|
||||||
## ToDo: Reinstall Teams
|
## ToDo: Reinstall Teams
|
||||||
|
|
||||||
} Else { LogMsg $Reinstall }
|
}
|
||||||
Reference in New Issue
Block a user