]> gitweb.factorcode.org Git - factor.git/commitdiff
build.cmd: fix cmd script syntax
authorAlexander Iljin <ajsoft@yandex.ru>
Sun, 11 Mar 2018 10:46:24 +0000 (11:46 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 11 Mar 2018 14:55:09 +0000 (07:55 -0700)
build.cmd

index 757bf45f37a67e394dcf1914d86b99d7535353e1..6d964ec6604f12dc2dbff9265bd739f7a813c94a 100644 (file)
--- a/build.cmd
+++ b/build.cmd
@@ -3,8 +3,8 @@ setlocal
 
 : Check which branch we are on, or just assume master if we are not in a git repository
 for /f %%z in ('git rev-parse --abbrev-ref HEAD') do set GIT_BRANCH=%%z
-if %GIT_BRANCH% =="" (
-    GIT_BRANCH = "master"
+if not defined GIT_BRANCH (
+    set GIT_BRANCH=master
 )
 
 if "%1"=="/?" (