BaseTools/toolsetup.bat: Fix bug caused by 'CONF_PATH' not defined
In batch script files, setting a variable in an 'if' block will only take effect after the 'if' block. This commit fixes the issue of using the variable 'CONF_PATH' right after it is being set in an 'if' block. Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -162,6 +162,7 @@ if not defined WORKSPACE (
|
|||||||
|
|
||||||
if not defined CONF_PATH (
|
if not defined CONF_PATH (
|
||||||
set CONF_PATH=%WORKSPACE%\Conf
|
set CONF_PATH=%WORKSPACE%\Conf
|
||||||
|
)
|
||||||
|
|
||||||
if NOT exist %CONF_PATH% (
|
if NOT exist %CONF_PATH% (
|
||||||
if defined PACKAGES_PATH (
|
if defined PACKAGES_PATH (
|
||||||
@@ -173,7 +174,6 @@ if not defined CONF_PATH (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
:CopyConf
|
:CopyConf
|
||||||
if NOT exist %CONF_PATH% (
|
if NOT exist %CONF_PATH% (
|
||||||
|
Reference in New Issue
Block a user