Add execInDir function

This commit is contained in:
Tim
2025-06-24 14:19:03 +02:00
parent 033cb886ac
commit d65b825316

View File

@ -17,3 +17,8 @@ function line(string $line): void
line($line);
exit($code);
}
function execInDirectory(string $dir, string $command): ?string
{
return shell_exec(sprintf('cd %s && %s', $dir, $command));
}