Fixed setting config values with spaces over SSH
This commit is contained in:
1 parent
361011ec69
commit
043a1a01c5
2 files changed
+7
-1
No files matched your search
@@ -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"
|
||||||
|
|||||||
@@ -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\"
|
||||||
|
|
||||||
Reference in new issue
Block a user