From cd25232a56f5e42f871cae65169eabc8a0bf45c8 Mon Sep 17 00:00:00 2001 From: Ali Rizvi-Santiago Date: Mon, 6 Jan 2020 03:07:21 -0600 Subject: [PATCH] Apparently one can't be lazy with Chef's Omnitruck API..Fixed script/cmtool.bat to explicitly specify a lowercase OMNITRUCK_MACHINE_ARCH. --- script/cmtool.bat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/script/cmtool.bat b/script/cmtool.bat index 4e267208..6886ed74 100644 --- a/script/cmtool.bat +++ b/script/cmtool.bat @@ -44,9 +44,16 @@ if "%CM%" == "chef" ( :: Deterine the other desired parameters here if not defined OMNITRUCK_PLATFORM set OMNITRUCK_PLATFORM=windows -if not defined OMNITRUCK_MACHINE_ARCH set OMNITRUCK_MACHINE_ARCH=%PROCESSOR_ARCHITECTURE% if not defined OMNITRUCK_VERSION set OMNITRUCK_VERSION=%CM_VERSION% +if not defined OMNITRUCK_MACHINE_ARCH ( + if "%PROCESSOR_ARCHITECTURE%" == "x86" ( + set OMNITRUCK_MACHINE_ARCH=x86 + ) else ( + set OMNITRUCK_MACHINE_ARCH=x64 + ) +) + :: We exclude the platform version as the Omnitruck API doesn't seem to use this :: set OMNITRUCK_PLATFORM_VERSION=