Skip to content

Commit 3b1f17e

Browse files
committed
fix: patch up non-existing jobs folder
1 parent e25a391 commit 3b1f17e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Queue/Commands/GenerateJobCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ protected function handle()
2626

2727
$file = \Aloe\Command\Config::rootpath(AppPaths('jobs') . "/$job.php");
2828

29+
if (!is_dir(\Aloe\Command\Config::rootpath(AppPaths('jobs')))) {
30+
mkdir(\Aloe\Command\Config::rootpath(AppPaths('jobs')));
31+
}
32+
2933
if (file_exists($file)) {
3034
$this->error("$job already exists");
3135

0 commit comments

Comments
 (0)