Fixed setting config values with spaces over SSH

This commit is contained in:
Ludovic Perrine
2014-10-02 15:40:21 +02:00
committed by Jose Diaz-Gonzalez
parent 361011ec69
commit 043a1a01c5
2 changed files with 7 additions and 1 deletions

6
dokku
View File

@@ -12,6 +12,12 @@ if [[ $(id -un) != "dokku" && $1 != plugins-install* ]]; then
exit
fi
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
export -n SSH_ORIGINAL_COMMAND
$0 $SSH_ORIGINAL_COMMAND
exit $?
fi
case "$1" in
receive)
APP="$2"; IMAGE="dokku/$APP"

View File

@@ -4,5 +4,5 @@ set -ex;
REMOTE=$1
REPO=$2
ssh $REMOTE config:set $REPO CONFTEST=config-test HELLO="Hello world"
ssh $REMOTE config:set $REPO CONFTEST=config-test HELLO=\"Hello world\"