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:
13 files changed
+317
-92
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user