From a2078f81c1914d30d8efdbb85acba99c1827f998 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Sat, 14 Nov 2015 15:28:49 +0000 Subject: [PATCH] update fix 4 --- ImportLines.bat | 8 ++++++++ Update.bat | 12 +++++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 ImportLines.bat 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