File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Illuminate/Console/Scheduling Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ protected function buildBackgroundCommand(Event $event)
52
52
$ finished = Application::formatCommandString ('schedule:finish ' ).' " ' .$ event ->mutexName ().'" ' ;
53
53
54
54
if (windows_os ()) {
55
- return 'start /b cmd /c "( ' .$ event ->command .' & ' .$ finished .' "%errorlevel%" ) ' .$ redirect .$ output .' 2>&1" ' ;
55
+ return 'start /b cmd /v:on / c "( ' .$ event ->command .' & ' .$ finished .' ^!ERRORLEVEL^! ) ' .$ redirect .$ output .' 2>&1" ' ;
56
56
}
57
57
58
58
return $ this ->ensureCorrectUser ($ event ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function testBuildCommandInBackgroundUsingWindows()
61
61
62
62
$ scheduleId = '"framework ' .DIRECTORY_SEPARATOR .'schedule-eeb46c93d45e928d62aaf684d727e213b7094822" ' ;
63
63
64
- $ this ->assertSame ('start /b cmd /c "(php -i & " ' .PHP_BINARY .'" artisan schedule:finish ' .$ scheduleId .' "%errorlevel%" ) > "NUL" 2>&1" ' , $ event ->buildCommand ());
64
+ $ this ->assertSame ('start /b cmd /v:on / c "(php -i & " ' .PHP_BINARY .'" artisan schedule:finish ' .$ scheduleId .' ^!ERRORLEVEL^! ) > "NUL" 2>&1" ' , $ event ->buildCommand ());
65
65
}
66
66
67
67
public function testBuildCommandSendOutputTo ()
You can’t perform that action at this time.
0 commit comments