Skip to content
Snippets Groups Projects
Commit 090caf7b authored by Bohdan Korablov's avatar Bohdan Korablov
Browse files

MAGETWO-61510: Implementation

parent 7e3f355e
No related merge requests found
......@@ -133,7 +133,7 @@ class CrontabManager implements CrontabManagerInterface
private function cleanMagentoSection($content)
{
$content = preg_replace(
'!' . self::TASKS_BLOCK_START . '.*?' . self::TASKS_BLOCK_END . PHP_EOL . '!s',
'!' . preg_quote(self::TASKS_BLOCK_START) . '.*?' . preg_quote(self::TASKS_BLOCK_END . PHP_EOL) . '!s',
'',
$content
);
......@@ -190,7 +190,7 @@ class CrontabManager implements CrontabManagerInterface
*/
private function checkSupportedOs()
{
if (stripos(PHP_OS, 'WIN') !== false) {
if (stripos(PHP_OS, 'WIN') === 0) {
throw new LocalizedException(
new Phrase('Your operation system is not supported, you cannot work with crontab')
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment