Skip to content

Commit

Permalink
fixes #192 on at least linux and osx
Browse files Browse the repository at this point in the history
  • Loading branch information
gcymbalski committed Dec 3, 2015
1 parent d409557 commit f956b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions priv/base/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit f956b46

@kesslerm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As reported by a Solaris user trying out 2.0.7, this breaks on Solaris10:

/opt/riak/sbin/riak: syntax error at line 242:ESCAPED_ARGS=$' unexpected`

Please sign in to comment.