Skip to content

Commit

Permalink
is white a colour?
Browse files Browse the repository at this point in the history
  • Loading branch information
markus committed Dec 17, 2016
1 parent 424f5e1 commit 4cb8312
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions cpupdate_portable.bat
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,21 @@ set zipexe=".\App\7-Zip\7z.exe"
rem =============================================================================
rem End of user settings
setlocal enabledelayedexpansion
echo Courseplay Beta Updatescript v1.3

rem Colored text only Win10+
for /f "tokens=2 delims=[]" %%x in ('ver') do set WINVER=%%x
set WINVER=%WINVER:Version =%
if "%WINVER:~0,3%"=="10." (
set colored=1
) else (
set colored=0
)

if %colored% == 1 (
echo Courseplay Beta Updatescript v1.4
) else (
echo Courseplay Beta Updatescript v1.4
)
echo (c) 2016 elpatron@mailbox.org
echo .
rem git.exe startable?
Expand All @@ -64,15 +78,6 @@ if "%zipok%"=="-1" goto gitzipfehler
echo Git and 7-Zip are ok, lets move on...
echo.

rem Colored text only Win10+
for /f "tokens=2 delims=[]" %%x in ('ver') do set WINVER=%%x
set WINVER=%WINVER:Version =%
if "%WINVER:~0,3%"=="10." (
set colored=1
) else (
set colored=0
)

rem Write a VBS file for getting Courseplay version from moddesc.xml
> "%TEMP%\getversion.vbs" (
echo.Dim oXml: Set oXml = CreateObject^("Microsoft.XMLDOM"^)
Expand Down

0 comments on commit 4cb8312

Please sign in to comment.