We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee83c51 commit dc343a3Copy full SHA for dc343a3
1 file changed
src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1
@@ -23,6 +23,11 @@ function Invoke-Terraform {
23
[switch] $silent
24
)
25
26
+ # Avoid bootstrap Terraform chdir errors if ~ in moduleFolderPath
27
+ if ($env:HOME -and $env:HOME -ne "" -and $moduleFolderPath -match '^(~)') {
28
+ $moduleFolderPath = $moduleFolderPath -replace '^(~)', $env:HOME
29
+ }
30
+
31
if ($PSCmdlet.ShouldProcess("Apply Terraform", "modify")) {
32
# Check and Set Subscription ID
33
$removeSubscriptionId = $false
0 commit comments