Refactor code to add sudo prefix for certain commands in multiple files

This commit is contained in:
Andras Bacsai committed 2024-04-17 10:49:34 +02:00
1 parent 17955fc419
commit 35b07a9c18
25 files changed
+74 -64

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ function remote_process(
if ($server->isNonRoot()) {
$command = parseCommandsByLineForSudo(collect($command), $server);
}
ray($command);
$command_string = implode("\n", $command);
if (auth()->user()) {
$teams = auth()->user()->teams->pluck('id');