Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

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

Andras Bacsai508446468857
diff --git a/bootstrap/helpers/sudo.php b/bootstrap/helpers/sudo.php
index c25e44a723..b8ef846877 100644
--- a/bootstrap/helpers/sudo.php
+++ b/bootstrap/helpers/sudo.php
@@ -30,7 +30,12 @@ function parseCommandsByLineForSudo(Collection $commands, Server $server): array
$bashKeywords = [
'cd',
'command',
+ 'declare',
'echo',
+ 'export',
+ 'local',
+ 'readonly',
+ 'return',
'true',
'if',
'fi',