From f956b465c570d6b5cba456b0b605fc581d7f579a Mon Sep 17 00:00:00 2001 From: Greg Cymbalski Date: Thu, 3 Dec 2015 12:44:31 -0800 Subject: [PATCH] fixes #192 on at least linux and osx --- priv/base/env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/priv/base/env.sh b/priv/base/env.sh index d05bb66..4ec9231 100755 --- a/priv/base/env.sh +++ b/priv/base/env.sh @@ -238,8 +238,8 @@ check_user() { # riak-admin bucket-type create mytype {props: {n_val: 4}} # after the arguments were passed into the new shell during exec su # - # So this regex finds any '"', '{', or '}' and prepends with a '\' - ESCAPED_ARGS=`echo "$@" | sed -e 's/\([{}"]\)/\\\\\1/g'` + # So this regex finds any '(', ')', "'" , '"', '{', or '}' and prepends with a '\' + ESCAPED_ARGS=$(echo "$@" | sed -e "s/\([\\\(\\\){}\"']\)/\\\\\1/g") # This will drop priviledges into the runner user # It exec's in a new shell and the current shell will exit