mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 15:27:58 +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 . '"');
|
||
|
}
|
||
|
}
|
||
|
}
|