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