Skip to content

Commit

Permalink
Merge pull request #109 from bramstroker/patch-1
Browse files Browse the repository at this point in the history
fix cronjob sync escaping issue with env vars
  • Loading branch information
tdgroot authored Jun 28, 2024
2 parents 8ab51fe + b2a0c55 commit 9754958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Deployer/Task/PlatformConfiguration/CronSyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getCurrentCrontab(): string

public function setCrontab(string $newCrontab): void
{
run('echo "' . $newCrontab . '" | crontab -');
run("echo $'" . str_replace('\'', '\\\'', $newCrontab) . "' | crontab -");
}

public function replaceExistingCronBlocks(string $newCronBlock): string
Expand Down

0 comments on commit 9754958

Please sign in to comment.