]> Cypherpunks repositories - gostls13.git/commit
{all,clean,make,race,run}.bat: use || instead of "if errorlevel 1"
authorqmuntal <quimmuntal@gmail.com>
Thu, 6 Feb 2025 09:55:59 +0000 (10:55 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 7 Feb 2025 17:13:54 +0000 (09:13 -0800)
commit580a383103f2bc67955a146a2d45b7c0c98dae8a
treec891f80c6511f092d561150602c460ccdaac9e94
parent302bf3631493417b365d693788357973a379a03d
{all,clean,make,race,run}.bat: use || instead of "if errorlevel 1"

"if errorlevel 1" is and old construct that returns true if the
errorlevel is greater than or equal to 1. There are better alternatives
since Windows NT. For example, the || operator runs the RHS operand if
the preceding command failed, determined by checking that the errorlevel
is different from 0. This approach is more robust -it also works with
negative errorlevels- and is less verbose.

Change-Id: I2070d654d8f9dd41a6cd586ba5ad5f4fea0638ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/647136
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/all.bat
src/clean.bat
src/make.bat
src/race.bat
src/run.bat