Permalink
Browse files

Be compatible with dash.

Dash used as /bin/sh on recent Ubuntu distributions does not
understand ==.

Change-Id: I0bb0542a6d4611590153500bcc7201de1a532db7
Reviewed-on: http://review.couchbase.org/8119
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
aartamonau authored and alk committed Jul 18, 2011
1 parent 115216c commit 3834d2e524ec75e3e4750ffbfdb53d095ef162ff
Showing with 2 additions and 2 deletions.
  1. +2 −2 membase-server.sh.in
View
@@ -142,13 +142,13 @@ _parse_options () {
fi
# set -e
eval set -- $options
- if [ "-k" == "$1" ]; then
+ if [ "-k" = "$1" ]; then
KILL=true;
fi
shift
- if [ x"$KILL" == "xtrue" ]; then
+ if [ x"$KILL" = "xtrue" ]; then
_stop
else
_start $*

0 comments on commit 3834d2e

Please sign in to comment.