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:
15
dokku
15
dokku
@@ -106,15 +106,12 @@ fi
|
|||||||
|
|
||||||
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
|
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
|
||||||
export -n SSH_ORIGINAL_COMMAND
|
export -n SSH_ORIGINAL_COMMAND
|
||||||
if [[ $1 =~ config-* ]] || [[ $1 =~ docker-options* ]]; then
|
exit_code=0
|
||||||
xargs $0 <<<$SSH_ORIGINAL_COMMAND
|
set -f
|
||||||
exit $?
|
xargs $0 <<<$SSH_ORIGINAL_COMMAND
|
||||||
else
|
echo $?
|
||||||
set -f
|
set +f
|
||||||
$0 $SSH_ORIGINAL_COMMAND
|
exit $exit_code
|
||||||
set +f
|
|
||||||
exit $?
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! dokku_auth "$@"; then
|
if ! dokku_auth "$@"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user