Commit b5b43e17 authored by Yann Garcia's avatar Yann Garcia
Browse files

Replace exit by return

parent 5358032d
...@@ -4,7 +4,7 @@ for /f "delims=" %%i in ('docker images -q stfubuntu') do set STFUBUNTU=%%i ...@@ -4,7 +4,7 @@ for /f "delims=" %%i in ('docker images -q stfubuntu') do set STFUBUNTU=%%i
if "x%STFUBUNTU%"=="x" ( if "x%STFUBUNTU%"=="x" (
echo Build the stfubuntu:18.04 base on ubuntu:18.04 echo Build the stfubuntu:18.04 base on ubuntu:18.04
docker build --tag stfubuntu:18.04 -f Dockerfile.stfubuntu --force-rm . docker build --tag stfubuntu:18.04 -f Dockerfile.stfubuntu --force-rm .
if %ERRORLEVEL% NEQ 0 exit 1 if %ERRORLEVEL% NEQ 0 return 1
) else ( ) else (
echo The stfubuntu:18.04 is already built. Skip this stage echo The stfubuntu:18.04 is already built. Skip this stage
) )
...@@ -13,14 +13,14 @@ docker build --tag stf525_its --force-rm . ...@@ -13,14 +13,14 @@ docker build --tag stf525_its --force-rm .
set RC=%ERRORLEVEL% set RC=%ERRORLEVEL%
if %RC% NEQ 0 ( if %RC% NEQ 0 (
echo Docker build failed: %RC% echo Docker build failed: %RC%
exit 1 return 1
) )
docker images docker images
docker inspect stf525_its:latest docker inspect stf525_its:latest
set RC=%ERRORLEVEL% set RC=%ERRORLEVEL%
if %RC% NEQ 0 ( if %RC% NEQ 0 (
echo Docker inspect failed: %RC% echo Docker inspect failed: %RC%
exit 1 return 1
) )
exit 0 return 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment