fix: disable filename globbing for all commands

This will allow spaces in arguments when interacting with Dokku over ssh.

Refs #2322
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-13 08:04:07 -04:00
parent 4d07ac6d6b
commit 5d8ccee919

15
dokku
View File

@@ -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