Fixing a NULL if Mods not in AzureBlob
parent
7b6fb35c01
commit
44a392787c
|
@ -152,7 +152,12 @@ if (Test-Network) {
|
||||||
if ($WAUConfig.WAU_ModsPath) {
|
if ($WAUConfig.WAU_ModsPath) {
|
||||||
$ModsPathClean = $($WAUConfig.WAU_ModsPath.TrimEnd(" ", "\", "/"))
|
$ModsPathClean = $($WAUConfig.WAU_ModsPath.TrimEnd(" ", "\", "/"))
|
||||||
Write-ToLog "WAU uses External Mods from: $ModsPathClean"
|
Write-ToLog "WAU uses External Mods from: $ModsPathClean"
|
||||||
|
if ($WAUConfig.WAU_AzureBlobSASURL) {
|
||||||
$NewMods, $DeletedMods = Test-ModsPath $ModsPathClean $WAUConfig.InstallLocation.TrimEnd(" ", "\") $WAUConfig.WAU_AzureBlobSASURL.TrimEnd(" ")
|
$NewMods, $DeletedMods = Test-ModsPath $ModsPathClean $WAUConfig.InstallLocation.TrimEnd(" ", "\") $WAUConfig.WAU_AzureBlobSASURL.TrimEnd(" ")
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$NewMods, $DeletedMods = Test-ModsPath $ModsPathClean $WAUConfig.InstallLocation.TrimEnd(" ", "\")
|
||||||
|
}
|
||||||
if ($ReachNoPath) {
|
if ($ReachNoPath) {
|
||||||
Write-ToLog "Couldn't reach/find/compare/copy from $ModsPathClean..." "Red"
|
Write-ToLog "Couldn't reach/find/compare/copy from $ModsPathClean..." "Red"
|
||||||
$Script:ReachNoPath = $False
|
$Script:ReachNoPath = $False
|
||||||
|
|
Loading…
Reference in New Issue