Fixed setting config values with spaces over SSH

This commit is contained in:
Ludovic Perrine authored and Jose Diaz-Gonzalez committed 2014-11-15 22:03:54 -05:00
1 parent 361011ec69
commit 043a1a01c5
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -12,6 +12,12 @@ if [[ $(id -un) != "dokku" && $1 != plugins-install* ]]; then
exit exit
fi fi
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
export -n SSH_ORIGINAL_COMMAND
$0 $SSH_ORIGINAL_COMMAND
exit $?
fi
case "$1" in case "$1" in
receive) receive)
APP="$2"; IMAGE="dokku/$APP" APP="$2"; IMAGE="dokku/$APP"
+1 -1
View File
@@ -4,5 +4,5 @@ set -ex;
REMOTE=$1 REMOTE=$1
REPO=$2 REPO=$2
ssh $REMOTE config:set $REPO CONFTEST=config-test HELLO="Hello world" ssh $REMOTE config:set $REPO CONFTEST=config-test HELLO=\"Hello world\"