We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd950d commit 06821b7Copy full SHA for 06821b7
1 file changed
recipe/magento2.php
@@ -595,7 +595,7 @@ function magentoDeployAssetsSplit(string $area): void
595
*/
596
desc('Remove cron from crontab and kill running cron jobs');
597
task('magento:cron:stop', function () {
598
- if (has('previous_release')) {
+ if (has('previous_release') && test("[ -f {{previous_release}}/{{magento_dir}}/bin/magento ]")) {
599
run('{{bin/php}} {{previous_release}}/{{magento_dir}}/bin/magento cron:remove');
600
}
601
0 commit comments