Skip to content

Commit

Permalink
Demoted the log in script/cmtool.bat when setting the default value…
Browse files Browse the repository at this point in the history
… for the "CM_VERSION" environment variable.
  • Loading branch information
arizvisa committed Jul 16, 2020
1 parent e3b7ae3 commit be8bec1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions script/cmtool.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,19 @@ echo ==^> Detected Windows Platform Version: %PlatformVersionMajor%.%PlatformVer
if not defined TEMP set TEMP=%LOCALAPPDATA%\Temp

:: Figure out which configuration management tool to use
if not defined CM echo ==^> ERROR: The "CM" variable was not found in the environment & goto exit1
if not defined CM (
echo ==^> ERROR: The "CM" variable was not found in the environment
goto exit1
)

if "%CM%" == "nocm" goto nocm

if not defined CM_VERSION (
echo ==^> ERROR: The "CM_VERSION" variable was not found in the environment
echo ==^> Using default value of "latest" for the "CM_VERSION" environment variable
set CM_VERSION=latest

) else (
echo ==^> Found the value "%CM_VERSION%" in the "CM_VERSION" environment variable
)

if "%CM%" == "chef" goto omnitruck
Expand Down

0 comments on commit be8bec1

Please sign in to comment.