Last fix and more log info
parent
fdfcdc9858
commit
7e631fd0a3
|
@ -94,7 +94,7 @@ if (Test-Network) {
|
||||||
Write-Log "WAU uses External Mods from: $($WAUConfig.WAU_ModsPath)"
|
Write-Log "WAU uses External Mods from: $($WAUConfig.WAU_ModsPath)"
|
||||||
$NewMods, $DeletedMods = Test-ModsPath $WAUConfig.WAU_ModsPath $WAUConfig.InstallLocation
|
$NewMods, $DeletedMods = Test-ModsPath $WAUConfig.WAU_ModsPath $WAUConfig.InstallLocation
|
||||||
if ($NewMods -gt 0) {
|
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 {
|
else {
|
||||||
if (Test-Path "$WorkingDir\mods\*.ps1") {
|
if (Test-Path "$WorkingDir\mods\*.ps1") {
|
||||||
|
|
|
@ -79,6 +79,8 @@ function Test-ModsPath ($ModsPath, $WingetUpdatePath) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
foreach ($Mod in $ExternalModsNames){
|
foreach ($Mod in $ExternalModsNames){
|
||||||
|
$dateExternalMod = ""
|
||||||
|
$dateLocalMod =""
|
||||||
if (Test-Path -Path $LocalMods"\"$Mod) {
|
if (Test-Path -Path $LocalMods"\"$Mod) {
|
||||||
$dateLocalMod = (Get-Item "$LocalMods\$Mod").LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss")
|
$dateLocalMod = (Get-Item "$LocalMods\$Mod").LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue