Skip to content

Commit 11a78a8

Browse files
committed
Fix errors
1 parent 2a9a4d2 commit 11a78a8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

vendor/init.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ if not defined git_locale for /F "tokens=* delims=" %%F in ('where env.exe 2^>nu
268268
setlocal enabledelayedexpansion
269269
if defined git_locale (
270270

271-
REM !print_debug! init.bat "Env Var - git_locale=!git_locale!"
271+
REM %print_debug% init.bat "Env Var - git_locale=!git_locale!"
272272
if not defined LANG (
273273
for /F "delims=" %%F in ('!git_locale! -uU 2') do (
274274
set "LANG=%%F"

vendor/lib/lib_console.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ call "%~dp0lib_base.cmd"
44
set lib_console=call "%~dp0lib_console.cmd"
55

66
:: Much faster than using "%lib_console% debug_output ..." etc.
7-
set print_debug=if %debug_output% gtr 0 %lib_console% debug_output %*
8-
set print_verbose=if %verbose_output% gtr 0 %lib_console% verbose_output %*
9-
set print_error=%lib_console% show_error %*
7+
set print_debug=if %debug_output% gtr 0 %lib_console% debug_output
8+
set print_verbose=if %verbose_output% gtr 0 %lib_console% verbose_output
9+
set print_error=%lib_console% show_error
1010

1111
if "%fast_init%" == "1" exit /b
1212

vendor/lib/lib_git.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ exit /b
244244
set "GIT_INSTALL_ROOT=!test_dir!"
245245
)
246246
) else (
247-
!print_verbose! "Found old !GIT_VERSION_USER! in !test_dir!, but not using..."
247+
%print_verbose% "Found old !GIT_VERSION_USER! in !test_dir!, but not using..."
248248
)
249249
) else (
250250
:: compare the user git version against the vendored version
251251
:: if the user provided git executable is not found
252252
IF ERRORLEVEL -255 IF NOT ERRORLEVEL -254 (
253-
!print_verbose! "No git at "!git_executable!" found."
253+
%print_verbose% "No git at "!git_executable!" found."
254254
set test_dir=
255255
)
256256
)

vendor/lib/lib_path.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ exit /b
8181
echo "!path!"|!WINDIR!\System32\findstr >nul /I /R /C:";!find_query!;"
8282
call :set_found
8383
)
84-
!print_debug! :enhance_path "Env Var INSIDE PATH !find_query! - found=!found!"
84+
%print_debug% :enhance_path "Env Var INSIDE PATH !find_query! - found=!found!"
8585

8686
if /i "!position!" == "append" (
8787
if "!found!" == "0" (
8888
echo "!path!"|!WINDIR!\System32\findstr >nul /I /R /C:";!find_query!\"$"
8989
call :set_found
9090
)
91-
!print_debug! :enhance_path "Env Var END PATH !find_query! - found=!found!"
91+
%print_debug% :enhance_path "Env Var END PATH !find_query! - found=!found!"
9292
) else (
9393
if "!found!" == "0" (
9494
echo "!path!"|!WINDIR!\System32\findstr >nul /I /R /C:"^\"!find_query!;"
9595
call :set_found
9696
)
97-
!print_debug! :enhance_path "Env Var BEGIN PATH !find_query! - found=!found!"
97+
%print_debug% :enhance_path "Env Var BEGIN PATH !find_query! - found=!found!"
9898
)
9999
endlocal & set found=%found%
100100

0 commit comments

Comments
 (0)