From dac5645d7391bdedd1c93075abe154a8d004ee9c Mon Sep 17 00:00:00 2001 From: Mikhail Safonov Date: Wed, 3 Jul 2019 23:30:27 +0300 Subject: [PATCH] Fixed the order of passing arguments from bat files when running the main script --- SPSD.Script/Batches/Deploy.bat | 2 +- SPSD.Script/Batches/Redeploy.bat | 2 +- SPSD.Script/Batches/Retract.bat | 2 +- SPSD.Script/Batches/RunOnlyExtensions.bat | 2 +- SPSD.Script/Batches/Update.bat | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SPSD.Script/Batches/Deploy.bat b/SPSD.Script/Batches/Deploy.bat index a9a0ecf..1ea7df2 100644 --- a/SPSD.Script/Batches/Deploy.bat +++ b/SPSD.Script/Batches/Deploy.bat @@ -77,5 +77,5 @@ IF NOT "%ExecutionPolicy%"=="Bypass" IF NOT "%ExecutionPolicy%"=="Unrestricted" ) GOTO LAUNCHSCRIPT :LAUNCHSCRIPT -"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %saveEnvXml% %envFile%"' +"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %envFile% %saveEnvXml%"' ENDLOCAL \ No newline at end of file diff --git a/SPSD.Script/Batches/Redeploy.bat b/SPSD.Script/Batches/Redeploy.bat index cb3ab1d..fd44fa1 100644 --- a/SPSD.Script/Batches/Redeploy.bat +++ b/SPSD.Script/Batches/Redeploy.bat @@ -77,5 +77,5 @@ IF NOT "%ExecutionPolicy%"=="Bypass" IF NOT "%ExecutionPolicy%"=="Unrestricted" ) GOTO LAUNCHSCRIPT :LAUNCHSCRIPT -"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %saveEnvXml% %envFile%"' +"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %envFile% %saveEnvXml%"' ENDLOCAL \ No newline at end of file diff --git a/SPSD.Script/Batches/Retract.bat b/SPSD.Script/Batches/Retract.bat index 06ad487..41eb722 100644 --- a/SPSD.Script/Batches/Retract.bat +++ b/SPSD.Script/Batches/Retract.bat @@ -77,5 +77,5 @@ IF NOT "%ExecutionPolicy%"=="Bypass" IF NOT "%ExecutionPolicy%"=="Unrestricted" ) GOTO LAUNCHSCRIPT :LAUNCHSCRIPT -"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %saveEnvXml% %envFile%"' +"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %envFile% %saveEnvXml%"' ENDLOCAL \ No newline at end of file diff --git a/SPSD.Script/Batches/RunOnlyExtensions.bat b/SPSD.Script/Batches/RunOnlyExtensions.bat index cce3b81..5af60cc 100644 --- a/SPSD.Script/Batches/RunOnlyExtensions.bat +++ b/SPSD.Script/Batches/RunOnlyExtensions.bat @@ -77,5 +77,5 @@ IF NOT "%ExecutionPolicy%"=="Bypass" IF NOT "%ExecutionPolicy%"=="Unrestricted" ) GOTO LAUNCHSCRIPT :LAUNCHSCRIPT -"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %saveEnvXml% %envFile%"' +"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %envFile% %saveEnvXml%"' ENDLOCAL \ No newline at end of file diff --git a/SPSD.Script/Batches/Update.bat b/SPSD.Script/Batches/Update.bat index 6514431..378f83d 100644 --- a/SPSD.Script/Batches/Update.bat +++ b/SPSD.Script/Batches/Update.bat @@ -77,5 +77,5 @@ IF NOT "%ExecutionPolicy%"=="Bypass" IF NOT "%ExecutionPolicy%"=="Unrestricted" ) GOTO LAUNCHSCRIPT :LAUNCHSCRIPT -"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %saveEnvXml% %envFile%"' +"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" -Command Start-Process "$PSHOME\powershell.exe" -Verb RunAs -ArgumentList '-Version %PSVersion% "%~dp0\Scripts\SPSD_Main.ps1 -Command %command% -Type %type% -Verbosity %verbosity% %envFile% %saveEnvXml%"' ENDLOCAL \ No newline at end of file