mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
14 lines
266 B
PHP
14 lines
266 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 . '"');
|
||
|
}
|
||
|
}
|
||
|
}
|