fix: add additional bash keywords to prevent sudo prefix in command parsing

This commit is contained in:
Andras Bacsai 2025-11-27 10:51:59 +01:00
parent 48c3daae88
commit 5084464688

View File

@ -30,7 +30,12 @@ function parseCommandsByLineForSudo(Collection $commands, Server $server): array
$bashKeywords = [
'cd',
'command',
'declare',
'echo',
'export',
'local',
'readonly',
'return',
'true',
'if',
'fi',