mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 00:28:00 +01:00
16 lines
299 B
PHP
16 lines
299 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Log;
|
||
|
|
||
|
class External
|
||
|
{
|
||
|
public static function execute($command)
|
||
|
{
|
||
|
$output = [];
|
||
|
$error = exec($command, $output);
|
||
|
|
||
|
if ($error != null) {
|
||
|
Log::error('"' . $command . '" failed with "' . $error . '"');
|
||
|
}
|
||
|
}
|
||
|
}
|