fix: respect quoting in procfile commands

Procfile commands for the `docker-local` scheduler were split differently on deploy and on `dokku run`. Deploys failed on escaped quotes, and `dokku run` ignored quotes entirely. Both now split commands using shell quoting rules, and commands containing bare shell operators fail with a clear error, matching the `k3s` scheduler.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-24 01:24:27 -04:00
1 parent 92afa386d1
commit 1f8a814047
13 files changed
+317 -92

No files matched your search

+6
View File
@@ -251,6 +251,12 @@ fn-docker-args-split() {
printf "%s" "$DOCKER_ARGS" | xargs -r printf "%s\0"
}
fn-split-command() {
declare desc="tokenizes a command string into NUL-delimited fields using shell quoting rules without shell expansion"
declare COMMAND="$1"
"$PLUGIN_CORE_AVAILABLE_PATH/common/common" split-command -- "$COMMAND"
}
is_valid_app_name() {
declare desc="verify that the app name matches naming restrictions"
local APP="$1"