Skip to content

Commit

Permalink
Bugfix: wrong shell operator
Browse files Browse the repository at this point in the history
  • Loading branch information
xfra35 committed Jun 19, 2018
1 parent ba8fa56 commit eba0a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function execute($job,$async=TRUE) {
if ($this->windows) {
pclose(popen(sprintf('start /b "cron" "%s" "%s\\%s" "/cron/%s"',$this->binary,$dir,$file,$job),'r'));
} else {
exec(sprintf('cd "%s" & %s %s /cron/%s >/dev/null 2>/dev/null &',$dir,$this->binary,$file,$job));
exec(sprintf('cd "%s" && %s %s /cron/%s >/dev/null 2>/dev/null &',$dir,$this->binary,$file,$job));
}
return FALSE;
}
Expand Down

0 comments on commit eba0a55

Please sign in to comment.