mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Remove unreliable check for git installed
It will fail anyway if not installed
This commit is contained in:
parent
97b9d99503
commit
853cf20e6e
@ -62,12 +62,6 @@ function registerEndpoints(app, jsonParser) {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
app.post('/api/extensions/install', jsonParser, async (request, response) => {
|
app.post('/api/extensions/install', jsonParser, async (request, response) => {
|
||||||
const gitExists = commandExistsSync('git');
|
|
||||||
|
|
||||||
if (!gitExists) {
|
|
||||||
return response.status(400).send('Server Error: git is not installed on the system.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!request.body.url) {
|
if (!request.body.url) {
|
||||||
return response.status(400).send('Bad Request: URL is required in the request body.');
|
return response.status(400).send('Bad Request: URL is required in the request body.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user