Skip to content

Commit

Permalink
Merge pull request ceph#41399 from idryomov/wip-mrun-if-posix
Browse files Browse the repository at this point in the history
mrun: avoid == in [ command

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored May 19, 2021
2 parents 05b561a + 20584f0 commit fa03786
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mrun
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa03786

Please sign in to comment.