dxa-web-application-dotnet
dxa-web-application-dotnet copied to clipboard
Web-Install.ps1 stops on relative path in -distDestination parameter
When calling web-install.ps1 with a relative path in the -distDestination parameter, the script will raise an error upon saving the Log.config.
For example web-install.ps1 -distDestination ..\..\test
This can simply be prevented by making sure the path is resolved with Resolve-Path before using it.
#Terminate script on first occurred exception
$ErrorActionPreference = "Stop"
$distDestination = Resolve-Path -Path $distDestination
#Process 'WhatIf' and 'Confirm' options
if (!($pscmdlet.ShouldProcess($distDestination, "Deploy DXA .NET Web Application"))) { return }
I would love to do a PR for this, but if I am not mistaken the installation scripts like web-install.ps1 is not in any of the Github repos.
Internal Issue ID (for tracking purposes): CRQ-12791