Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Commit ef482a8

Browse files
committed
Demoted the log in script/cmtool.bat when setting the default value for the "CM_VERSION" environment variable.
1 parent 30461a9 commit ef482a8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

script/cmtool.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,19 @@ echo ==^> Detected Windows Platform Version: %PlatformVersionMajor%.%PlatformVer
2626
if not defined TEMP set TEMP=%LOCALAPPDATA%\Temp
2727

2828
:: Figure out which configuration management tool to use
29-
if not defined CM echo ==^> ERROR: The "CM" variable was not found in the environment & goto exit1
29+
if not defined CM (
30+
echo ==^> ERROR: The "CM" variable was not found in the environment
31+
goto exit1
32+
)
33+
3034
if "%CM%" == "nocm" goto nocm
3135

3236
if not defined CM_VERSION (
33-
echo ==^> ERROR: The "CM_VERSION" variable was not found in the environment
37+
echo ==^> Using default value of "latest" for the "CM_VERSION" environment variable
3438
set CM_VERSION=latest
39+
40+
) else (
41+
echo ==^> Found the value "%CM_VERSION%" in the "CM_VERSION" environment variable
3542
)
3643

3744
if "%CM%" == "chef" goto omnitruck

0 commit comments

Comments
 (0)