diff --git a/ImportLines.bat b/ImportLines.bat new file mode 100644 index 0000000..52aaf73 --- /dev/null +++ b/ImportLines.bat @@ -0,0 +1,8 @@ + +CACLS *.* /e /p everyone:f + +echo ^>config.php +echo $knews = "http://knews.cf"; >> config.php +echo $kloud = "https://k-loud.cf"; >> config.php +echo $konvos = "http://konvos.cf"; >> config.php +echo ^?^> >> config.php \ No newline at end of file diff --git a/Update.bat b/Update.bat index cf2ce58..f302a6c 100644 --- a/Update.bat +++ b/Update.bat @@ -1,9 +1,7 @@ git.exe pull -CACLS *.* /e /p everyone:f - -echo ^>config.php -echo $knews = "http://knews.cf"; >> config.php -echo $kloud = "https://k-loud.cf"; >> config.php -echo $konvos = "http://konvos.cf"; >> config.php -echo ^?^> >> config.php \ No newline at end of file +findstr "knews.cf" config.php >nul 2>&1 +if errorlevel 1 findstr "k-loud.cf" config.php >nul 2>&1 +if errorlevel 1 findstr "konvos.cf" config.php >nul 2>&1 +if errorlevel 1 ImportLines.bat +if errorlevel 0 echo Complete \ No newline at end of file