We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c37f868 commit 4b88c2cCopy full SHA for 4b88c2c
2 files changed
UpdateGitCommit.ps1
@@ -3,7 +3,6 @@
3
Write-Output "SVC_COMMIT_ID: '$env:SVC_COMMIT_ID'"
4
5
6
-
7
$webConfig = "$env:DEPLOYMENT_TARGET\Web.config"
8
9
$doc = (Get-Content $webConfig) -as [Xml]
deploy.cmd
@@ -94,7 +94,8 @@ IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
94
95
:: Post deployment stub
96
97
-@powershell -File "%DEPLOYMENT_SOURCE%\UpdateGitCommit.ps1"
+@powershell -Command "& { Set-ExecutionPolicy RemoteSigned -Scope Process; . %DEPLOYMENT_SOURCE%\UpdateGitCommit.ps1 }"
98
+
99
IF !ERRORLEVEL! NEQ 0 goto error
100
101
goto end
0 commit comments