fix(sudo): preserve substitutions in backup shell commands (#11329)

This commit is contained in:
Andras Bacsai
2026-08-17 16:23:30 +02:00
committed by GitHub
parent 282227b238
commit c314319a7e
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -95,6 +95,7 @@ function parseCommandsByLineForSudo(Collection $commands, Server $server): array
$isComplexPipeCommand = (
$line->contains(' | sh') ||
$line->contains(' | bash') ||
$line->contains(' sh -c ') ||
($line->contains(' | ') && ($line->contains('||') || $line->contains('&&')))
);