Skip to content

Commit

Permalink
Build script: pushd/popd when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
aybe committed Mar 8, 2023
1 parent ea0a5ce commit 354bb28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dearimgui-build.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo off
pushd

set COLOR_WARN=
set COLOR_NORM=
Expand Down Expand Up @@ -75,6 +76,7 @@ goto end

:err
echo %COLOR_WARN%Aborting, last command failed with error code %ERRORLEVEL%%COLOR_NORM%
popd

:end
set BUILD_TYPE=
Expand Down

0 comments on commit 354bb28

Please sign in to comment.