Skip to content

Commit 9bbd4ce

Browse files
committed
Avoid unwanted output during .bat script execution
Moving the REM statement after @echo off ensures it is not displayed when the script runs.
1 parent 94d563a commit 9bbd4ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SourceSVN/post-commit.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
REM Command line wrapper to start PowerShell hook script
21
@echo off
2+
REM Command line wrapper to start PowerShell hook script
33
set PWSH=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe
44
%PWSH% -ExecutionPolicy Bypass -NonInteractive -NoProfile -Command "$input | %1\hooks\post-commit.ps1" "%1" "%2" "%3"
5-
if errorlevel 1 exit /b %errorlevel%
5+
if errorlevel 1 exit /b %errorlevel%

SourceSVN/post-revprop-change.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
REM Command line wrapper to start PowerShell hook script
21
@echo off
2+
REM Command line wrapper to start PowerShell hook script
33
set PWSH=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe
44
%PWSH% -ExecutionPolicy Bypass -NonInteractive -NoProfile -Command "$input | %1\hooks\post-revprop-change.ps1" "%1" "%2" "%3" "%4" "%5"
5-
if errorlevel 1 exit /b %errorlevel%
5+
if errorlevel 1 exit /b %errorlevel%

0 commit comments

Comments
 (0)