From 8470ffcb0d66c2f1ab0c7ce5a289b0a7d50494ca Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 28 Jul 2018 19:43:40 -0700 Subject: [PATCH] Fix some build script bugs uncovered by AppVeyor --- scripts/generate-installers.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/generate-installers.bat b/scripts/generate-installers.bat index 4e669cbe..5451f706 100644 --- a/scripts/generate-installers.bat +++ b/scripts/generate-installers.bat @@ -6,15 +6,15 @@ setlocal enableDelayedExpansion set BUILD_CONFIG=%1 set ARCH=%2 -if "%BUILD_CONFIG%" NEQ "debug" ( - if "%BUILD_CONFIG%" NEQ "release" ( +if /I "%BUILD_CONFIG%" NEQ "debug" ( + if /I "%BUILD_CONFIG%" NEQ "release" ( echo Invalid build configuration goto Error ) ) -if "%ARCH%" NEQ "x86" ( - if "%ARCH%" NEQ "x64" ( +if /I "%ARCH%" NEQ "x86" ( + if /I "%ARCH%" NEQ "x64" ( echo Invalid build architecture goto Error ) @@ -78,4 +78,4 @@ exit /b 0 :Error echo Build failed! -exit /b %ERRORLEVEL% \ No newline at end of file +exit /b !ERRORLEVEL! \ No newline at end of file