Skip to content

Commit

Permalink
prompt module: Don't display newline if variable is undefined in CI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pal1000 committed Nov 1, 2024
1 parent 902b925 commit 2856b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/modules/prompt.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@IF NOT defined cimode set cimode=0
@if %cimode% EQU 0 set /p %1=%~2
@if %cimode% EQU 0 echo.
@setlocal ENABLEDELAYEDEXPANSION
@if %cimode% EQU 1 IF NOT "!%1!"=="" echo %~2!%1!
@echo.
@if %cimode% EQU 1 IF NOT "!%1!"=="" echo.

0 comments on commit 2856b1c

Please sign in to comment.