Skip to content

Commit 615c0a1

Browse files
committed
Fix ERRORLEVEL expansion in case there is no docker-compose
1 parent 7cd1e37 commit 615c0a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

workshop/win-geopython-workshop-ctl.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ REM Sniff which Docker Compose variant is installed
2121
REM and set an alias.
2222
REM See https://github.com/geopython/geopython-workshop/issues/82
2323
docker-compose --version >NUL
24-
IF %ERRORLEVEL% EQU 0 (
24+
IF !ERRORLEVEL! EQU 0 (
2525
SET DOCKERCOMPOSE=docker-compose
2626
ECHO Using docker-compose
2727
) ELSE (
2828
docker compose version >NUL
29-
IF %ERRORLEVEL% NEQ 0 (
29+
IF !ERRORLEVEL! NEQ 0 (
3030
ECHO Neither docker-compose nor docker compose is available
3131
ECHO Check your Docker Installation
3232
ENDLOCAL

0 commit comments

Comments
 (0)