Skip to content

Commit

Permalink
Apparently one can't be lazy with Chef's Omnitruck API..Fixed script/…
Browse files Browse the repository at this point in the history
…cmtool.bat to explicitly specify a lowercase OMNITRUCK_MACHINE_ARCH.
  • Loading branch information
arizvisa committed Jan 6, 2020
1 parent a6fe5a2 commit cd25232
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion script/cmtool.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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=

Expand Down

0 comments on commit cd25232

Please sign in to comment.