wip
This commit is contained in:
@@ -14,10 +14,7 @@ class GitPullController extends Controller
|
|||||||
'command' => ['sometimes', 'string'],
|
'command' => ['sometimes', 'string'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$result = Process::pipe(function (Pipe $pipe) {
|
$result = Process::path(base_path())->run('bash ok.sh');
|
||||||
$pipe->command('sudo -S ');
|
|
||||||
// $pipe->command('git pull');
|
|
||||||
});
|
|
||||||
|
|
||||||
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user