wip
This commit is contained in:
@@ -8,13 +8,9 @@ use Illuminate\Support\Facades\Process;
|
||||
|
||||
class GitPullController extends Controller
|
||||
{
|
||||
public function index(Request $request)
|
||||
public function index()
|
||||
{
|
||||
$request->validate([
|
||||
'command' => ['sometimes', 'string'],
|
||||
]);
|
||||
|
||||
$result = Process::path(base_path())->run('bash ok.sh');
|
||||
$result = Process::path(base_path())->run('bash git_pull.sh');
|
||||
|
||||
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user