Skip to content

Commit 66ce390

Browse files
richeneyRichard Cheney
andauthored
fix: Expand tilde for chdir (issue #389) (#390)
# Pull Request ## Issue Fixes #389 ## Description Expands ~ with $env:HOME if found in moduleFolderPath ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license. --------- Co-authored-by: Richard Cheney <[email protected]>
1 parent ee83c51 commit 66ce390

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function Invoke-Terraform {
2323
[switch] $silent
2424
)
2525

26+
# Resolve to absolute path for `terraform -chdir` switch
27+
$moduleFolderPath = (Resolve-Path $moduleFolderPath).Path
28+
2629
if ($PSCmdlet.ShouldProcess("Apply Terraform", "modify")) {
2730
# Check and Set Subscription ID
2831
$removeSubscriptionId = $false

0 commit comments

Comments
 (0)