]> gitweb.factorcode.org Git - factor.git/commitdiff
build.cmd: set outside if.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 16 Dec 2021 21:37:14 +0000 (13:37 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 16 Dec 2021 21:37:14 +0000 (13:37 -0800)
build.cmd

index 2d8b958291be72bcb3f75d21e137f674cb752692..85466486b55e15f1ea342d0f4e2b91175456d07a 100644 (file)
--- a/build.cmd
+++ b/build.cmd
@@ -80,9 +80,9 @@ if "%_compile_vm%"=="1" (
     if errorlevel 1 goto fail
 )
 
     if errorlevel 1 goto fail
 )
 
+set _bootimage_url=http://downloads.factorcode.org/images/%GIT_BRANCH%/%_bootimage%
 if "%_bootimage_type%"=="download" (
     echo Fetching %GIT_BRANCH% boot image...
 if "%_bootimage_type%"=="download" (
     echo Fetching %GIT_BRANCH% boot image...
-    set _bootimage_url=http://downloads.factorcode.org/images/%GIT_BRANCH%/%_bootimage%
     echo URL: %_bootimage_url%
     cscript /nologo misc\http-get.vbs %_bootimage_url% %_bootimage%
     if errorlevel 1 goto fail
     echo URL: %_bootimage_url%
     cscript /nologo misc\http-get.vbs %_bootimage_url% %_bootimage%
     if errorlevel 1 goto fail