add putenv wrapper

This commit is contained in:
crazywhalecc 2023-10-22 22:14:11 +08:00
parent 8191444fe9
commit 99150e2cef
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -110,6 +110,12 @@ function f_mkdir(string $directory, int $permissions = 0777, bool $recursive = f
return mkdir($directory, $permissions, $recursive);
}
function f_putenv(string $env): bool
{
logger()->debug('Setting env: ' . $env);
return putenv($env);
}
function shell(?bool $debug = null): UnixShell
{
return new UnixShell($debug);