From 99150e2cefbfc2ce3cde4e7487aef0c03f7ab236 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 22 Oct 2023 22:14:11 +0800 Subject: [PATCH] add putenv wrapper --- src/globals/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/globals/functions.php b/src/globals/functions.php index c9ef849a..d63f3350 100644 --- a/src/globals/functions.php +++ b/src/globals/functions.php @@ -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);