fix run_remote with strong quoting

Summary:
add \' pair to avoid bash expanding before run remotely
Closes https://github.com/facebook/rocksdb/pull/2079

Differential Revision: D4821342

Pulled By: lightmark

fbshipit-source-id: 418ba41
This commit is contained in:
Aaron Gao 2017-04-03 13:01:06 -07:00 committed by Facebook Github Bot
parent 72e6000947
commit 0537f515c2

View File

@ -361,7 +361,7 @@ function run_remote {
function test_remote {
if ! [ -z "$REMOTE_USER_AT_HOST" ]; then
cmd="$SSH $REMOTE_USER_AT_HOST $1"
cmd="$SSH $REMOTE_USER_AT_HOST '$1'"
else
cmd="$1"
fi