From: Steve Holme <steve_holme@hotmail.com>
Date: Sat, 4 May 2019 21:46:52 +0000 (+0100)
Subject: makedebug: Fix ERRORLEVEL detection after running where.exe
X-Git-Tag: curl-7_65_0~85
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80637fc473243652c7920965c38dc8a0140e4ead;p=curl

makedebug: Fix ERRORLEVEL detection after running where.exe

Closes #3838
---

diff --git a/winbuild/makedebug.cmd b/winbuild/makedebug.cmd
index b4a917c34..079e16a05 100644
--- a/winbuild/makedebug.cmd
+++ b/winbuild/makedebug.cmd
@@ -2,7 +2,7 @@
 
 where.exe nmake.exe >nul 2>&1
 
-IF %ERRORLEVEL == 1 (
+IF %ERRORLEVEL% == 1 (
     ECHO Error: Can't find `nmake.exe` - be sure to run this script from within a Developer Command-Prompt
     ECHO.
 ) ELSE (