mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 21:47:59 +01:00
16 lines
No EOL
299 B
PHP
16 lines
No EOL
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 . '"');
|
|
}
|
|
}
|
|
} |