mirror of
https://github.com/bitinflow/bunny-cli.git
synced 2026-03-13 13:45:54 +00:00
15 lines
325 B
PHP
15 lines
325 B
PHP
<?php
|
|
|
|
if (!function_exists('bunny_cli_path')) {
|
|
function bunny_cli_path(): string
|
|
{
|
|
if (strncasecmp(PHP_OS, 'WIN', 3) === 0) {
|
|
$result = exec("echo %appdata%");
|
|
} else {
|
|
$result = getenv('HOME');
|
|
}
|
|
|
|
return $result . DIRECTORY_SEPARATOR . '.bunny-cli';
|
|
}
|
|
}
|