&1", $output_array, $exitcode); foreach($output_array as $line) $output .= "$line\n"; if($exitcode != 0) $output .= "\n\nGit exited with code $exitcode"; echo $output; $webhook .= "```yaml\n"; $webhook .= $output; $webhook .= "```"; Discord::SendToWebhook(["content" => $webhook], Discord::WEBHOOK_POLYGON_GITPULL, false);