Skip to content

Commit 4b88c2c

Browse files
committed
updating CMD script
1 parent c37f868 commit 4b88c2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

UpdateGitCommit.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Write-Output "SVC_COMMIT_ID: '$env:SVC_COMMIT_ID'"
44

55

6-
76
$webConfig = "$env:DEPLOYMENT_TARGET\Web.config"
87

98
$doc = (Get-Content $webConfig) -as [Xml]

deploy.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
9494

9595
:: Post deployment stub
9696

97-
@powershell -File "%DEPLOYMENT_SOURCE%\UpdateGitCommit.ps1"
97+
@powershell -Command "& { Set-ExecutionPolicy RemoteSigned -Scope Process; . %DEPLOYMENT_SOURCE%\UpdateGitCommit.ps1 }"
98+
9899
IF !ERRORLEVEL! NEQ 0 goto error
99100

100101
goto end

0 commit comments

Comments
 (0)