This commit is contained in:
2025-06-12 21:28:20 +05:00
parent 3583f49a9b
commit d90e2966c7

View File

@@ -13,9 +13,9 @@ class GitPullController extends Controller
'command' => ['sometimes', 'string'] 'command' => ['sometimes', 'string']
]); ]);
$result = Process::path(base_path())->run(
$request->filled('command') ? $request->filled('command') : 'git pull'
$result = Process::path(base_path())->run('git pull'); );
return '<pre>'.$result->output().'</pre>'; return '<pre>'.$result->output().'</pre>';
} }