FIX: saltarse lineas comentadas
This commit is contained in:
@ -19,7 +19,7 @@ class Schedule
|
|||||||
$commands = [];
|
$commands = [];
|
||||||
foreach ($schedule as $line) {
|
foreach ($schedule as $line) {
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
if ($line === '') {
|
if (trim($line) === '' or str_starts_with('#', $line)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$data = $this->parseCommandLine($line);
|
$data = $this->parseCommandLine($line);
|
||||||
|
Reference in New Issue
Block a user