From 5d8ccee9196e926ff1ccfb64f4bbb30ffa06d40f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 13 Mar 2024 08:04:07 -0400 Subject: [PATCH] fix: disable filename globbing for all commands This will allow spaces in arguments when interacting with Dokku over ssh. Refs #2322 --- dokku | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dokku b/dokku index 46f8d6f92..73c31a50d 100755 --- a/dokku +++ b/dokku @@ -106,15 +106,12 @@ fi if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then export -n SSH_ORIGINAL_COMMAND - if [[ $1 =~ config-* ]] || [[ $1 =~ docker-options* ]]; then - xargs $0 <<<$SSH_ORIGINAL_COMMAND - exit $? - else - set -f - $0 $SSH_ORIGINAL_COMMAND - set +f - exit $? - fi + exit_code=0 + set -f + xargs $0 <<<$SSH_ORIGINAL_COMMAND + echo $? + set +f + exit $exit_code fi if ! dokku_auth "$@"; then