This commit is contained in:
2025-06-12 21:46:01 +05:00
parent b7b3f3ded4
commit 915d32a121

View File

@@ -15,8 +15,8 @@ class GitPullController extends Controller
]); ]);
$result = Process::pipe(function (Pipe $pipe) { $result = Process::pipe(function (Pipe $pipe) {
$pipe->command('ls -la '.base_path()); $pipe->command('sudo su');
// $pipe->command('grep -i "laravel"'); $pipe->command('git pull');
}); });
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput(); return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();