mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-19 23:28:40 +00:00
Reduce potential existence bugs
This commit is contained in:
parent
de4eb598f1
commit
b3007d74c2
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
$postBody = $_POST['payload'];
|
||||
$postBody = $_POST['payload'] ?? '';
|
||||
$payload = json_decode($postBody, true);
|
||||
|
||||
if ($payload['repository']['name'] === 'Orange-Management') {
|
||||
if (isset($payload['repository'], $payload['repository']['name']) && $payload['repository']['name'] === 'Orange-Management') {
|
||||
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');
|
||||
|
||||
echo 'Installing';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user