Last fix and more log info

pull/232/head
KnifMelti 2022-11-08 03:21:48 +01:00
parent fdfcdc9858
commit 7e631fd0a3
2 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,7 @@ if (Test-Network) {
Write-Log "WAU uses External Mods from: $($WAUConfig.WAU_ModsPath)"
$NewMods, $DeletedMods = Test-ModsPath $WAUConfig.WAU_ModsPath $WAUConfig.InstallLocation
if ($NewMods -gt 0) {
Write-Log "Newer Mods downloaded/copied to local path: $($WAUConfig.InstallLocation)\mods" "Yellow"
Write-Log "$NewMods newer Mods downloaded/copied to local path: $($WAUConfig.InstallLocation)\mods" "Yellow"
}
else {
if (Test-Path "$WorkingDir\mods\*.ps1") {

View File

@ -79,6 +79,8 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath) {
}
try {
foreach ($Mod in $ExternalModsNames){
$dateExternalMod = ""
$dateLocalMod =""
if (Test-Path -Path $LocalMods"\"$Mod) {
$dateLocalMod = (Get-Item "$LocalMods\$Mod").LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss")
}