update.bat

This commit is contained in:
Karl Hudgell 2016-02-06 18:53:47 +00:00
parent 9f4ac346dd
commit d85bde05e0

@ -199,7 +199,27 @@ findstr "headvisible" config.php >nul 2>&1
echo Headphones Updated
goto END
:END
rem Add widget
findstr "widgetbackgroud" config.php >nul 2>&1
if errorlevel 1 goto ONE
if errorlevel 0 goto ZERO
goto END
:ZERO
echo Custom Widget Already Updated
goto END
:ONE
echo ^<?php >>config.php
echo //// Widget Settings >> config.php
echo $widgetbackgroud = "0"; >> config.php
echo $customwidgetbackgroud = "0"; >> config.php
echo $widgetbackgroudcolour = ""; >> config.php
echo //// >> config.php
echo ^?^> >> config.php
echo Custom Widget Updated
goto END
:END
rem Update Version
findstr "localversion" config.php >nul 2>&1
if errorlevel 1 goto ONE