From 117884dfa0506204e9a507b0b29e2aa5b296d7ff Mon Sep 17 00:00:00 2001 From: Prikkeldraad Date: Tue, 3 Nov 2015 21:05:20 +0100 Subject: [PATCH] #413 quotations added for paths which include spaces --- Build.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Build.bat b/Build.bat index 41516adf2..398fbfa0e 100644 --- a/Build.bat +++ b/Build.bat @@ -5,11 +5,11 @@ if '%1'=='-help' goto help if '%1'=='help' goto help if '%1'=='-h' goto help -%~dp0vendor\tools\nuget.exe Install %~dp0vendor\packages.config -o %~dp0vendor\packages -powershell -NoProfile -ExecutionPolicy Bypass -Command ^ - "$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 %* -ScriptPath $psakeDir\tools ; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }" +"%~dp0vendor\tools\NuGet.exe" install "%~dp0vendor\packages.config" -o "%~dp0vendor\packages" +@SET cmd=$psakeDir = ([array](dir """%~dp0vendor\packages\psake.*"""))[-1]; ".$psakeDir\tools\psake.ps1" build.psake.ps1 %* -ScriptPath "$psakeDir\tools" ; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 } +powershell -NoProfile -ExecutionPolicy Bypass -Command ^ "%cmd%" goto :eof :help -powershell -NoProfile -ExecutionPolicy Bypass -Command ^ - "$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 -docs -ScriptPath $psakeDir\tools" +@SET cmd=$psakeDir = ([array](dir """%~dp0vendor\packages\psake.*"""))[-1]; ".$psakeDir\tools\psake.ps1 build.psake.ps1" -docs -ScriptPath "$psakeDir\tools" +powershell -NoProfile -ExecutionPolicy Bypass -Command ^ "%cmd%" \ No newline at end of file