Skip to content

Commit 7e8f015

Browse files
committed
check exit code
1 parent b93e5d2 commit 7e8f015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azd-hooks/scripts/hooks/preprovision/run_preconfig.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ terraform {
144144
Write-Host "Checking if RS_CONTAINER_NAME environment variable exists..."
145145
# Check if RS_CONTAINER_NAME azd environment variable exists
146146
try {
147-
Write-Host $RS_CONTAINER_NAME
148-
$rsContainerName = $RS_CONTAINER_NAME
147+
Write-Host $LASTEXITCODE
148+
$rsContainerName = '$env:RS_CONTAINER_NAME'
149149
if ($LASTEXITCODE -eq 0 -and $rsContainerName) {
150150
Write-Host "✓ RS_CONTAINER_NAME environment variable exists with value: $rsContainerName"
151151

0 commit comments

Comments
 (0)