diff options
| author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-09-18 14:17:49 +0100 |
|---|---|---|
| committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-09-18 14:17:49 +0100 |
| commit | 61211d6e24c891b4305fb4c822138d24871eb943 (patch) | |
| tree | ae24c3be27fb67e89b66a5bbac246fcb89c57a23 | |
| parent | 5ed1782eda1ef139a807cbce2a99af44eefe3835 (diff) | |
| download | rabbitmq-server-git-61211d6e24c891b4305fb4c822138d24871eb943.tar.gz | |
Escape *all* the double-quotes in an arg, not just the first one.
| -rw-r--r-- | packaging/common/rabbitmq-asroot-script-wrapper | 2 | ||||
| -rw-r--r-- | packaging/common/rabbitmq-script-wrapper | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/common/rabbitmq-asroot-script-wrapper b/packaging/common/rabbitmq-asroot-script-wrapper index 0dd1c0fbda..9ef59ad76b 100644 --- a/packaging/common/rabbitmq-asroot-script-wrapper +++ b/packaging/common/rabbitmq-asroot-script-wrapper @@ -33,7 +33,7 @@ # Escape spaces and quotes, because shell is revolting. for arg in "$@" ; do # Escape quotes in parameters, so that they're passed through cleanly. - arg=$(sed -e 's/"/\\"/' <<-END + arg=$(sed -e 's/"/\\"/g' <<-END $arg END ) diff --git a/packaging/common/rabbitmq-script-wrapper b/packaging/common/rabbitmq-script-wrapper index 94d72f169a..0c4bd0a8d7 100644 --- a/packaging/common/rabbitmq-script-wrapper +++ b/packaging/common/rabbitmq-script-wrapper @@ -33,7 +33,7 @@ # Escape spaces and quotes, because shell is revolting. for arg in "$@" ; do # Escape quotes in parameters, so that they're passed through cleanly. - arg=$(sed -e 's/"/\\"/' <<-END + arg=$(sed -e 's/"/\\"/g' <<-END $arg END ) |
