add support for passed arguments

Add environment variable SuiteArgs that can be used to pass arguments to
powershell.  For example
set SuiteArgs=-verbose
will set powershell execution output to verbose
This commit is contained in:
jamesweb 2016-04-25 14:39:28 -07:00
Родитель 3fd43b8a9f
Коммит d6eb6798b7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -41,7 +41,7 @@
@SET DeploymentScripts=%~dp0\Common\Deployment
@SET BuildPath=%~dp0Build_Output\%Configuration%
@SET PowerShellCmd=%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -Command
@SET PublishCmd=%PowerShellCmd% %DeploymentScripts%\PrepareIoTSample.ps1 -environmentName %EnvironmentName% -configuration %Configuration%
@SET PublishCmd=%PowerShellCmd% %DeploymentScripts%\PrepareIoTSample.ps1 -environmentName %EnvironmentName% -configuration %Configuration% %SuiteArgs%
@IF /I '%AzureEnvironmentName%' NEQ '' (
Set PublishCmd=%PublishCmd% -azureEnvironmentName %AzureEnvironmentName%