Skip to content

Commit

Permalink
ISSUE-192: Trim schedule before checking it
Browse files Browse the repository at this point in the history
  • Loading branch information
robiningelbrecht committed Jan 31, 2025
1 parent 829c0cb commit f84e68f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$CRON_ABC_PATH = '/config/crontabs/abc';

$crontabContent = file_get_contents($CRON_ABC_PATH);
$scheduleEnv = getenv('IMPORT_AND_BUILD_SCHEDULE');
$scheduleEnv = trim(getenv('IMPORT_AND_BUILD_SCHEDULE'));

if (!$match = preg_match($AUTO_LINE, $crontabContent, $matches)) {
echo 'Auto Cron: Did not find well-formed cron schedule with AUTO CRON flag, skipping generation...'.PHP_EOL;
Expand Down

0 comments on commit f84e68f

Please sign in to comment.