wip
This commit is contained in:
1 parent
b7b3f3ded4
commit
915d32a121
1 file changed
+2
-2
@@ -15,8 +15,8 @@ public function index(Request $request)
|
||||
]);
|
||||
|
||||
$result = Process::pipe(function (Pipe $pipe) {
|
||||
$pipe->command('ls -la '.base_path());
|
||||
// $pipe->command('grep -i "laravel"');
|
||||
$pipe->command('sudo su');
|
||||
$pipe->command('git pull');
|
||||
});
|
||||
|
||||
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
||||
|
||||
Reference in new issue
Block a user