From 20584f09e99a1659face85daf4c0731a88e4e277 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 19 May 2021 13:00:16 +0200 Subject: [PATCH] mrun: avoid == in [ command == operator is not supported in POSIX sh (e.g. dash): ./mrun: 24: [: unexpected operator Signed-off-by: Ilya Dryomov --- src/mrun | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mrun b/src/mrun index 3122342e1bc73..b3a25d14db305 100755 --- a/src/mrun +++ b/src/mrun @@ -21,10 +21,9 @@ fi shift 2 -if [ "$RGW_VALGRIND" == 'yes' ] && [ $command == 'radosgw' ]; then +if [ "$RGW_VALGRIND" = "yes" ] && [ "$command" = "radosgw" ]; then valgrind --trace-children=yes --tool=memcheck --max-threads=1024 $CEPH_BIN/$command -c $CEPH_CONF_PATH/ceph.conf "$@" sleep 10 else $CEPH_BIN/$command -c $CEPH_CONF_PATH/ceph.conf "$@" fi -